Просмотр исходного кода

dpkg-source: drop upstream debian directory before copying the debian one in place

In source formats "2.0" and "3.0 (quilt)", make sure to remove the
upstream-provided debian directory before copying the debian-provided
version of that directory in place. Closes: #590297
Raphaël Hertzog лет назад: 16
Родитель
Сommit
1b9c0f6d82
2 измененных файлов с 4 добавлено и 0 удалено
  1. 3 0
      debian/changelog
  2. 1 0
      scripts/Dpkg/Source/Package/V2.pm

+ 3 - 0
debian/changelog

@@ -54,6 +54,9 @@ dpkg (1.15.8) UNRELEASED; urgency=low
     Also pass --rsyncable to make source packages more rsync friendly.
   * Replace dpkg-source's tar ignore pattern "*~" with "*/*~" to avoid
     matching on the top level directory. Closes: #588265
+  * In source formats "2.0" and "3.0 (quilt)", make sure to remove the
+    upstream-provided debian directory before copying the debian-provided
+    version of that directory in place. Closes: #590297
 
   [ Guillem Jover ]
   * Require gettext 0.18:

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

@@ -341,6 +341,7 @@ sub do_build {
     }
 
     # Copy over the debian directory
+    erasedir("$tmp/debian");
     system("cp", "-a", "--", "$dir/debian", "$tmp/");
     subprocerr(_g("copy of the debian directory")) if $?;