diff options
author | Dan McGee <dan@archlinux.org> | 2013-11-07 05:05:18 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2013-11-07 05:05:18 +0100 |
commit | a4cf77ba247605fb442b314e311de2829bb3706b (patch) | |
tree | b218aaa8152706624a6cf743e1c430b531a75f38 /devel | |
parent | cf27baf51956747f9ea5a349d41e796031871c5c (diff) | |
download | archweb-a4cf77ba247605fb442b314e311de2829bb3706b.tar.gz archweb-a4cf77ba247605fb442b314e311de2829bb3706b.tar.xz |
Move signature data from base64 string to bytes type
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/management/commands/reporead.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 19d54e1..2b565cf 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -13,6 +13,7 @@ Example: ./manage.py reporead i686 /tmp/core.db.tar.gz """ +from base64 import b64decode from collections import defaultdict from copy import copy import io @@ -217,7 +218,7 @@ def populate_pkg(dbpkg, repopkg, force=False, timestamp=None): dbpkg.packager_str = repopkg.packager # attempt to find the corresponding django user for this string dbpkg.packager = finder.find(repopkg.packager) - dbpkg.pgp_signature = repopkg.pgpsig + dbpkg.signature_bytes = b64decode(repopkg.pgpsig.encode('utf-8')) if timestamp: dbpkg.last_update = timestamp |