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

dpkg-name: Fix typo in --overwrite argument parsing

This fixes the option so that it actually works at all.

LP: #728708

Signed-off-by: Guillem Jover <guillem@debian.org>
Ivan Gagis лет назад: 15
Родитель
Сommit
8a910bc7aa
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      debian/changelog
  2. 1 1
      scripts/dpkg-name.pl

+ 2 - 0
debian/changelog

@@ -43,6 +43,8 @@ dpkg (1.16.0) UNRELEASED; urgency=low
     arguments are optionsl.
   * Do not read and write the available file unnecessarily.
     Thanks to Michel Lespinasse <walken@zoy.org>. Closes: #397121
+  * Fix typo in «dpkg-name --overwrite» argument parsing so that it actually
+    works at all. Thanks to Ivan Gagis <igagis@gmail.com>. LP: #728708
 
   [ Raphaël Hertzog ]
   * Fail properly when debian/source/format is empty. Closes: #600854

+ 1 - 1
scripts/dpkg-name.pl

@@ -233,7 +233,7 @@ while (@ARGV) {
             $options{destdir} = shift(@ARGV);
         }
     } elsif (m/^-o|--overwrite$/) {
-        $options{overwite} = 1;
+        $options{overwrite} = 1;
     } elsif (m/^-k|--symlink$/) {
         $options{symlink} = 1;
     } elsif (m/^-a|--no-architecture$/) {