diff options
Diffstat (limited to 'gbp/deb/changelog.py')
-rw-r--r-- | gbp/deb/changelog.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py index 674e9e7a..b8c10b86 100644 --- a/gbp/deb/changelog.py +++ b/gbp/deb/changelog.py @@ -126,3 +126,25 @@ class ChangeLog(object): Whether this is a native Debian package """ return not '-' in self.version + + @property + def author(self): + """ + The author of the last modification + """ + return email.Utils.parseaddr(self._cp['Maintainer'])[0] + + @property + def email(self): + """ + The author's email + """ + return email.Utils.parseaddr(self._cp['Maintainer'])[1] + + @property + def date(self): + """ + The date of the last modification as rfc822 date + """ + return self._cp['Date'] + |