]> git.decadent.org.uk Git - dak.git/commitdiff
daklib.upload.Binary: add name property.
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 31 Jul 2014 22:01:52 +0000 (00:01 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 31 Jul 2014 22:01:52 +0000 (00:01 +0200)
daklib/upload.py

index f6a2a815259cfebe54a71ad99fc6f0bc42e364e3..bf470bf3374f72e4d9af78f2d62075db36fd5043 100644 (file)
@@ -447,6 +447,10 @@ class Binary(object):
             version = self.control['Version']
         return (match.group('package'), version)
 
+    @property
+    def name(self):
+        return self.control['Package']
+
     @property
     def type(self):
         """package type ('deb' or 'udeb')