]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_install: Find all possible cases of "changelog" and "changes", rather 7.0.2
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 25 Apr 2008 02:18:06 +0000 (22:18 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 25 Apr 2008 02:18:06 +0000 (22:18 -0400)
than just looking for some predefined common cases.

debian/changelog
dh_installchangelogs

index dbc36f24f97dcfa603e463d204d505185d2b1689..c6064b168267159bd64c51d6e122fe850cb78c02 100644 (file)
@@ -1,13 +1,16 @@
-debhelper (7.0.2) UNRELEASED; urgency=low
+debhelper (7.0.2) unstable; urgency=low
 
   * dh: Optimise the case where the binary-arch or binary-indep sequence is
     run and there are no packages of that type.
   * dh_auto_configure: Set PERL_MM_USE_DEFAULT when configuring MakeMaker
     packages to avoid interactive prompts.
   * dh_auto_*: Also support packages using Module::Build.
-  * dh_auto_*: Fix some calls to setup.py.
+  * dh_auto_*: Fix some calls to setup.py. Now tested and working with
+    python packages.
+  * dh_install: Find all possible cases of "changelog" and "changes", rather
+    than just looking for some predefined common cases.
 
- -- Joey Hess <joeyh@debian.org>  Thu, 24 Apr 2008 14:10:56 -0400
+ -- Joey Hess <joeyh@debian.org>  Thu, 24 Apr 2008 21:55:49 -0400
 
 debhelper (7.0.1) unstable; urgency=low
 
index 339313a25a92bf36a41007c1adad1d0f46e73b0d..3d7be50d9fded33b1210dd32ff8d71672ec7788b 100755 (executable)
@@ -67,9 +67,11 @@ my $upstream=shift;
 my $changelog_name="changelog.Debian";
 if (! defined $upstream) {
        if (! isnative($dh{MAINPACKAGE}) && !compat(6)) {
-               foreach my $name (qw{ChangeLog Changelog Changes CHANGES changelog}) {
-                       if (-e $name) {
-                               $upstream=$name;
+               my @files=sort glob("*");
+               foreach my $name (qw{changelog changes}) {
+                       my @matches=grep { lc $_ eq $name } @files;
+                       if (@matches) {
+                               $upstream=shift @matches;
                                last;
                        }
                }