Procházet zdrojové kódy

dpkg-source (2.0/3.0 (quilt)): improve build messages

* scripts/Dpkg/Source/Package/V2.pm (do_build): Display a
message when local modifications are stored in a new
automatic patch. This messages includes a list of
modified files.
Raphael Hertzog před 18 roky
rodič
revize
70f7edb8da
2 změnil soubory, kde provedl 12 přidání a 0 odebrání
  1. 7 0
      ChangeLog
  2. 5 0
      scripts/Dpkg/Source/Package/V2.pm

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+2008-05-23  Raphael Hertzog  <hertzog@debian.org>
+
+	* scripts/Dpkg/Source/Package/V2.pm (do_build): Display a
+	message when local modifications are stored in a new
+	automatic patch. This messages includes a list of
+	modified files.
+
 2008-05-23  Raphael Hertzog  <hertzog@debian.org>
 2008-05-23  Raphael Hertzog  <hertzog@debian.org>
 
 
 	* scripts/Dpkg/Source/Package/V3/quilt.pm: Remove the .diff
 	* scripts/Dpkg/Source/Package/V3/quilt.pm: Remove the .diff

+ 5 - 0
scripts/Dpkg/Source/Package/V2.pm

@@ -348,6 +348,11 @@ sub do_build {
         unlink($tmpdiff) || syserr(_g("cannot remove %s"), $tmpdiff);
         unlink($tmpdiff) || syserr(_g("cannot remove %s"), $tmpdiff);
     } else {
     } else {
         mkpath(File::Spec->catdir($dir, "debian", "patches"));
         mkpath(File::Spec->catdir($dir, "debian", "patches"));
+        info(_g("local changes stored in %s, the modified files are:"), $autopatch);
+        my $analysis = $diff->analyze($dir);
+        foreach my $fn (sort keys %{$analysis->{'filepatched'}}) {
+            print " $fn\n";
+        }
         rename($tmpdiff, $autopatch) ||
         rename($tmpdiff, $autopatch) ||
                 syserr(_g("cannot rename %s to %s"), $tmpdiff, $autopatch);
                 syserr(_g("cannot rename %s to %s"), $tmpdiff, $autopatch);
     }
     }