]> err.no Git - dak/commitdiff
daklib/upload.py (Changes): add source_name property
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 16 Sep 2012 13:41:31 +0000 (15:41 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 16 Sep 2012 14:45:30 +0000 (16:45 +0200)
daklib/upload.py

index b0baf8cbade14966dca357ad46cae5a400c999ce..c55c4090496818d9c5f5cf07f64ec6445d58e7af 100644 (file)
@@ -269,6 +269,13 @@ class Changes(object):
                 self._source = Source(self.directory, source_files, self._keyrings, self._require_signature)
         return self._source
 
+    @property
+    def source_name(self):
+        """source package name
+        @type: str
+        """
+        return re_field_source.match(self.changes['Source']).group('package')
+
     @property
     def binaries(self):
         """included binary packages