Explorar o código

dpkg-source: don't always print "local changes have been recorded in a new patch"

The message should only be printed if such a patch has really
been created.

Reported-by: Sven Joachim
Raphaël Hertzog %!s(int64=15) %!d(string=hai) anos
pai
achega
45c83175b6
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      scripts/Dpkg/Source/Package/V2.pm

+ 2 - 1
scripts/Dpkg/Source/Package/V2.pm

@@ -514,7 +514,8 @@ sub do_build {
     mkpath(File::Spec->catdir($dir, "debian", "patches"));
     $autopatch = $self->register_patch($dir, $tmpdiff,
                                        $self->get_autopatch_name());
-    info(_g("local changes have been recorded in a new patch: %s"), $autopatch);
+    info(_g("local changes have been recorded in a new patch: %s"), $autopatch)
+        if -e $autopatch;
     rmdir(File::Spec->catdir($dir, "debian", "patches")); # No check on purpose
     unlink($tmpdiff) || syserr(_g("cannot remove %s"), $tmpdiff);
     pop @Dpkg::Exit::handlers;