]> err.no Git - dak/commitdiff
daklib/upload.py: Add package_list method to Source
authorTollef Fog Heen <tfheen@varnish-software.com>
Tue, 17 Sep 2013 12:54:42 +0000 (14:54 +0200)
committerTollef Fog Heen <tfheen@err.no>
Tue, 17 Sep 2013 12:54:42 +0000 (14:54 +0200)
Signed-off-by: Tollef Fog Heen <tfheen@err.no>
daklib/upload.py

index cabec15116ad898e78a8d48f7ab2743fd2735b07..af6bc85ad3b115be127a717b85ffa76982fe0e9c 100644 (file)
@@ -28,6 +28,7 @@ import re
 
 from daklib.gpg import SignedFile
 from daklib.regexes import *
+from daklib.utils import build_package_list
 
 class InvalidChangesException(Exception):
     pass
@@ -552,3 +553,11 @@ class Source(object):
         @type: str
         """
         return self._dsc_file.filename
+
+    @property
+    def package_list(self):
+        """Package list
+
+        @type: list
+        """
+        return build_package_list(self.dsc)