[Pkg-libvirt-commits] [libguestfs] 86/87: Added patch so podwrapper.pl generates stable dates from git-style ChangeLog (Closes: #738925)

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:10:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository libguestfs.

commit f96f717961e0b60710fe3417d102aedc6b0b7918
Author: Hilko Bengen <bengen at debian.org>
Date:   Fri Feb 14 00:02:23 2014 +0100

    Added patch so podwrapper.pl generates stable dates from git-style ChangeLog (Closes: #738925)
---
 ...er-Recognize-git-style-dates-in-ChangeLog.patch | 32 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/0008-podwrapper-Recognize-git-style-dates-in-ChangeLog.patch b/debian/patches/0008-podwrapper-Recognize-git-style-dates-in-ChangeLog.patch
new file mode 100644
index 0000000..c88963d
--- /dev/null
+++ b/debian/patches/0008-podwrapper-Recognize-git-style-dates-in-ChangeLog.patch
@@ -0,0 +1,32 @@
+From: Hilko Bengen <bengen at debian.org>
+Date: Thu, 13 Feb 2014 23:57:53 +0100
+Subject: podwrapper: Recognize git-style dates in ChangeLog
+
+---
+ podwrapper.pl.in | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/podwrapper.pl.in b/podwrapper.pl.in
+index 9bceec3..61d5e12 100755
+--- a/podwrapper.pl.in
++++ b/podwrapper.pl.in
+@@ -235,9 +235,17 @@ my $date;
+ my $filename = "$abs_top_srcdir/ChangeLog";
+ if (-r $filename) {
+     open FILE, $filename or die "$progname: $filename: $!";
+-    $_ = <FILE>;
++    while (<FILE>) {
++        if (/^Date:\s+...\s+(...)\s+(\d+)\s+..:..:..\s+(\d{4})\s+.*$/) {
++            my $i = 0;
++            my %month =
++              map { $_ => ++$i }
++                (qw< Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec >);
++            $date = sprintf '%04d-%02d-%02d', $3, $month{$1}, $2;
++            last;
++        }
++    }
+     close FILE;
+-    $date = $1 if /^(\d+-\d+-\d+)\s/;
+ }
+ $filename = "$abs_top_srcdir/.git";
+ if (!$date && -d $filename) {
diff --git a/debian/patches/series b/debian/patches/series
index ebde46e..05e4744 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
 0005-Disable-gnulib-tests-by-default.patch
 0006-golang-Fix-for-out-of-tree-builds.patch
 0007-Don-t-use-module-init-tools-which-has-been-a-metapac.patch
+0008-podwrapper-Recognize-git-style-dates-in-ChangeLog.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list