summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorFelix Yan <felixonmars@archlinux.org>2019-02-09 01:49:15 +0800
committerJelle van der Waa <jelle@vdwaa.nl>2019-02-09 14:58:48 +0100
commita5d05569dfa0802ebe6e7ee96aee434fe43f3e92 (patch)
treed2ddd3915815c4b8c340df3fba8791526630dc9e /main/models.py
parent4a2c87b0f63ee780089f20845ea3b66ee6228cc2 (diff)
downloadarchweb-a5d05569dfa0802ebe6e7ee96aee434fe43f3e92.tar.gz
archweb-a5d05569dfa0802ebe6e7ee96aee434fe43f3e92.zip
Make Package.signature return str key_id
We use the attribute in many places, but it's a "bytes" object in pgpdump that messes up the remaining logic. Let's just wrap it from the very beginning.
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/models.py b/main/models.py
index 18980ae5..2c6651b8 100644
--- a/main/models.py
+++ b/main/models.py
@@ -7,7 +7,7 @@ from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from .fields import PositiveBigIntegerField
-from .utils import set_created_field, DependStandin
+from .utils import set_created_field, DependStandin, SignatureWrapper
from devel.models import DeveloperKey
from packages.alpm import AlpmAPI
@@ -142,7 +142,7 @@ class Package(models.Model):
return None
data = BinaryData(self.signature_bytes)
packets = list(data.packets())
- return packets[0]
+ return SignatureWrapper(packets[0])
@property
def signer(self):