The following commit has been merged in the sid branch:
commit bd4c055562a3cbfa1c74b55348e545b2fcdd3393
Author: Raphaël Hertzog <[email protected]>
Date:   Tue Sep 27 09:01:52 2011 +0200

    dpkg-source: let --commit create debian/patches when required
    
    Reported-by: Jakub Wilk <[email protected]>

diff --git a/debian/changelog b/debian/changelog
index 6d6a672..418815f 100644
--- a/debian/changelog
+++ b/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
     for unrecorded changes.
+  * Let dpkg-source --commit create debian/patches when required.
 
  -- Raphaël Hertzog <[email protected]>  Tue, 27 Sep 2011 08:15:51 +0200
 
diff --git a/scripts/Dpkg/Source/Package/V2.pm 
b/scripts/Dpkg/Source/Package/V2.pm
index f93ff3f..a5d32e1 100644
--- a/scripts/Dpkg/Source/Package/V2.pm
+++ b/scripts/Dpkg/Source/Package/V2.pm
@@ -644,6 +644,7 @@ sub commit {
         $patch_name =~ s/\s+/-/g;
         $patch_name =~ s/\///g;
     }
+    mkpath(File::Spec->catdir($dir, "debian", "patches"));
     my $patch = $self->register_patch($dir, $tmpdiff, $patch_name);
     system("sensible-editor", $patch);
     unlink($tmpdiff) || syserr(_g("cannot remove %s"), $tmpdiff);

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to