diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-05-20 16:36:17 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-05-20 18:49:06 +0200 |
commit | 2ecf9e339f08fdb65607e738bac9216f078caeff (patch) | |
tree | 53db9a6384bb01a64819c596dc7eb4b768cf8ddc | |
parent | 9d1459b8718a08576a0acb585e56efd79b95eb4f (diff) | |
download | git-buildpackage-2ecf9e339f08fdb65607e738bac9216f078caeff.tar.gz git-buildpackage-2ecf9e339f08fdb65607e738bac9216f078caeff.tar.bz2 git-buildpackage-2ecf9e339f08fdb65607e738bac9216f078caeff.zip |
gbp.deb.ChangeLog: Add filename property
-rw-r--r-- | gbp/deb/changelog.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py index 1c66d4a1..0f9bace5 100644 --- a/gbp/deb/changelog.py +++ b/gbp/deb/changelog.py @@ -71,6 +71,7 @@ class ChangeLog(object): """ self._contents = '' self._cp = None + self._filename = filename # Check that either contents or filename is passed (but not both) if (not filename and not contents) or (filename and contents): @@ -123,6 +124,11 @@ class ChangeLog(object): self._cp[item] = value @property + def filename(self): + """The filename (path) of the changelog""" + return self._filename + + @property def name(self): """The packges name""" return self._cp['Source'] |