summaryrefslogtreecommitdiff
path: root/gbp/deb/source.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-04-13 13:50:01 +0200
committerGuido Günther <agx@sigxcpu.org>2013-04-13 14:26:24 +0200
commit1593648de8e251d2a7d98ed26f4a9905aaaba5c1 (patch)
tree5e1de7bda331acbd8b34158fe6f5d3d29e30cddb /gbp/deb/source.py
parentd510f2a0c1cf6ca3a2c112e864774a46b2836efb (diff)
Add gbp.git.source.Source.sourcepkg
to easily fetch the source package name Git-Dch: Ignore
Diffstat (limited to 'gbp/deb/source.py')
-rw-r--r--gbp/deb/source.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gbp/deb/source.py b/gbp/deb/source.py
index 699038a..1959ec9 100644
--- a/gbp/deb/source.py
+++ b/gbp/deb/source.py
@@ -81,3 +81,10 @@ class DebianSource(object):
clf = self._vfs.open('debian/changelog')
self._changelog = ChangeLog(clf.read())
return self._changelog
+
+ @property
+ def sourcepkg(self):
+ """
+ The source package's name
+ """
+ return self.changelog['Source']