summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Changelog/Entry.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-04-02 03:19:17 +0200
committerGuillem Jover <guillem@debian.org>2016-07-03 18:44:22 +0200
commit4e8550c8e2a4f5aab5b803df0ea77c50e089d2dd (patch)
treed47bdfc0ca40cec5c62bcb5f82007c8117d20612 /scripts/Dpkg/Changelog/Entry.pm
parentd1629d0ec1b2619a1f2bd6839f975335e9cb6484 (diff)
downloaddpkg-4e8550c8e2a4f5aab5b803df0ea77c50e089d2dd.tar.gz
Dpkg::Changelog: Add a getter for the Time::Piece object
Make it possible to retrieve the already parsed Time::Piece object, instead of having to reparse it.
Diffstat (limited to 'scripts/Dpkg/Changelog/Entry.pm')
-rw-r--r--scripts/Dpkg/Changelog/Entry.pm16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/Dpkg/Changelog/Entry.pm b/scripts/Dpkg/Changelog/Entry.pm
index 2b611bfda..c9deb044d 100644
--- a/scripts/Dpkg/Changelog/Entry.pm
+++ b/scripts/Dpkg/Changelog/Entry.pm
@@ -18,7 +18,7 @@ package Dpkg::Changelog::Entry;
use strict;
use warnings;
-our $VERSION = '1.00';
+our $VERSION = '1.01';
use Carp;
@@ -281,6 +281,16 @@ sub get_timestamp {
return;
}
+=item $time = $entry->get_timepiece()
+
+Return the timestamp of the changelog entry as a Time::Piece object.
+
+=cut
+
+sub get_timepiece {
+ return;
+}
+
=item $str = $entry->get_dpkg_changes()
Returns a string that is suitable for usage in a C<Changes> field
@@ -299,6 +309,10 @@ sub get_dpkg_changes {
=head1 CHANGES
+=head2 Version 1.01 (dpkg 1.18.8)
+
+New method: $entry->get_timepiece().
+
=head2 Version 1.00 (dpkg 1.15.6)
Mark the module as public.