From 877b24da5966777f63c2003b9e3654efbcfc68b0 Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kodama.kitenet.net>
Date: Wed, 10 Sep 2008 13:58:42 -0400
Subject: [PATCH] dh_installchangelogs: Fall back to looking for changelog
 files ending with ".txt". Closes: #498460

---
 debian/changelog     | 7 +++++++
 dh_installchangelogs | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 2f10793..ebcb381 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debhelper (7.0.18) UNRELEASED; urgency=low
+
+  * dh_installchangelogs: Fall back to looking for changelog files ending
+    with ".txt". Closes: #498460
+
+ -- Joey Hess <joeyh@debian.org>  Wed, 10 Sep 2008 13:58:00 -0400
+
 debhelper (7.0.17) unstable; urgency=low
 
   [ Per Olofsson ]
diff --git a/dh_installchangelogs b/dh_installchangelogs
index 7042c5f..a5cce3f 100755
--- a/dh_installchangelogs
+++ b/dh_installchangelogs
@@ -68,7 +68,7 @@ my $changelog_name="changelog.Debian";
 if (! defined $upstream) {
 	if (! isnative($dh{MAINPACKAGE}) && !compat(6)) {
 		my @files=sort glob("*");
-		foreach my $name (qw{changelog changes}) {
+		foreach my $name (qw{changelog changes changelog.txt changes.txt}) {
 			my @matches=grep { lc $_ eq $name && -s $_ } @files;
 			if (@matches) {
 				$upstream=shift @matches;
-- 
2.39.5