[Reproducible-commits] [debhelper] 48/61: dh_installchangelogs: Also look for changelogs with .rst suffix

Mattia Rizzolo mattia at mapreri.org
Sat Apr 4 18:37:38 UTC 2015


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

mapreri-guest pushed a commit to branch pu/reproducible_builds
in repository debhelper.

commit 29231e618d0437f0e207887308a6512961acfe54
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Sun Mar 1 10:16:33 2015 +0100

    dh_installchangelogs: Also look for changelogs with .rst suffix
---
 debian/changelog     | 1 +
 dh_installchangelogs | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7d2f75e..90233ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -95,6 +95,7 @@ debhelper (9.20150101.1) UNRELEASED; urgency=medium
     "history").
       + Looks for "history.md" now, too.
       + Makes it easier to add base names or suffixes in the future.
+  * dh_installchangelogs: Also look for changelogs with .rst suffix.
 
  -- Niels Thykier <niels at thykier.net>  Thu, 01 Jan 2015 17:24:38 +0100
 
diff --git a/dh_installchangelogs b/dh_installchangelogs
index c32ad93..c83ac26 100755
--- a/dh_installchangelogs
+++ b/dh_installchangelogs
@@ -142,7 +142,7 @@ if (! defined $upstream) {
 	if (! isnative($dh{MAINPACKAGE}) && !compat(6)) {
 		foreach my $dir (qw{. doc docs}) {
 			my @files=sort glob("$dir/*");
-			foreach my $suffix ('', qw(.txt .md)) {
+			foreach my $suffix ('', qw(.txt .md .rst)) {
 				foreach my $name (qw{changelog changes history}) {
 					my @matches=grep {
 						lc basename($_) eq "$name$suffix" && -s $_ && ! excludefile($_)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git



More information about the Reproducible-commits mailing list