Преглед на файлове

dpkg-source: let --commit create debian/patches when required

Reported-by: Jakub Wilk <jwilk@debian.org>
Raphaël Hertzog преди 15 години
родител
ревизия
bd4c055562
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      debian/changelog
  2. 1 0
      scripts/Dpkg/Source/Package/V2.pm

+ 1 - 0
debian/changelog

@@ -2,6 +2,7 @@ dpkg (1.16.1.1) UNRELEASED; urgency=low
 
 
   * Fix dpkg-source to not ignore the automatic patch when checking
   * Fix dpkg-source to not ignore the automatic patch when checking
     for unrecorded changes.
     for unrecorded changes.
+  * Let dpkg-source --commit create debian/patches when required.
 
 
  -- Raphaël Hertzog <hertzog@debian.org>  Tue, 27 Sep 2011 08:15:51 +0200
  -- Raphaël Hertzog <hertzog@debian.org>  Tue, 27 Sep 2011 08:15:51 +0200
 
 

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

@@ -644,6 +644,7 @@ sub commit {
         $patch_name =~ s/\s+/-/g;
         $patch_name =~ s/\s+/-/g;
         $patch_name =~ s/\///g;
         $patch_name =~ s/\///g;
     }
     }
+    mkpath(File::Spec->catdir($dir, "debian", "patches"));
     my $patch = $self->register_patch($dir, $tmpdiff, $patch_name);
     my $patch = $self->register_patch($dir, $tmpdiff, $patch_name);
     system("sensible-editor", $patch);
     system("sensible-editor", $patch);
     unlink($tmpdiff) || syserr(_g("cannot remove %s"), $tmpdiff);
     unlink($tmpdiff) || syserr(_g("cannot remove %s"), $tmpdiff);