From: Ansgar Burchardt Date: Sun, 16 Sep 2012 13:41:31 +0000 (+0200) Subject: daklib/upload.py (Changes): add source_name property X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=6f5a4716955f6370dc740b62c907d0c0e83735be;p=dak.git daklib/upload.py (Changes): add source_name property --- diff --git a/daklib/upload.py b/daklib/upload.py index b0baf8cb..c55c4090 100644 --- a/daklib/upload.py +++ b/daklib/upload.py @@ -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