[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] daklib/upload.py (Changes): add source_name property



---
 daklib/upload.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/daklib/upload.py b/daklib/upload.py
index b0baf8c..c55c409 100644
--- a/daklib/upload.py
+++ b/daklib/upload.py
@@ -270,6 +270,13 @@ class Changes(object):
         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
         @type: list of L{daklib.upload.Binary}
-- 
1.7.2.5



Reply to: