Преглед изворни кода

Fix typo in variable name in dpkg-source which was causing it to not
create directories when extracting the diff. Closes: #374645

Guillem Jover пре 19 година
родитељ
комит
9469f8b432
3 измењених фајлова са 9 додато и 2 уклоњено
  1. 5 0
      ChangeLog
  2. 2 0
      debian/changelog
  3. 2 2
      scripts/dpkg-source.pl

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2007-01-23  Guillem Jover  <guillem@debian.org>
+
+	* scripts/dpkg-source.pl: Fix typo in variable name from $dirc to
+	$dircreate, and append a "/" on each loop.
+
 2007-01-16  Nicolas François  <nicolas.francois@centraliens.net>
 
 	* configure.ac: There are no more Makefiles to generate in the

+ 2 - 0
debian/changelog

@@ -14,6 +14,8 @@ dpkg (1.14.0) UNRELEASED; urgency=low
   * Make some perl scripts use static and warnings, to ease catching errors.
   * Add a missing newline to a warning message in dpkg. Closes: #390914
     Thanks to Ian Jackson.
+  * Fix typo in variable name in dpkg-source which was causing it to not
+    create directories when extracting the diff. Closes: #374645
 
   [ Updated dpkg translations ]
   * Romanian (Eddy Petrișor).

+ 2 - 2
scripts/dpkg-source.pl

@@ -808,8 +808,8 @@ if ($opmode eq 'build') {
 
     for $dircreate (keys %dirtocreate) {
 	$dircreatem= "";
-	for $dircreatep (split("/",$dirc)) {
-	    $dircreatem.= $dircreatep;
+	for $dircreatep (split("/", $dircreate)) {
+	    $dircreatem .= $dircreatep . "/";
 	    if (!lstat($dircreatem)) {
 		$! == ENOENT || &syserr(sprintf(_g("cannot stat %s"), $dircreatem));
 		mkdir($dircreatem,0777)