Wichert Akkerman лет назад: 25
Родитель
Сommit
79b03569f8
3 измененных файлов с 6 добавлено и 1 удалено
  1. 4 0
      ChangeLog
  2. 1 0
      debian/changelog
  3. 1 1
      scripts/dpkg-divert.pl

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+Tue Apr 24 13:38:58 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
+
+  * scripts/dpkg-divert.pl: Fix wrong errno test
+
 Tue Apr 24 13:35:08 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
 
   * po/it.po: New version from Lele Gaifax

+ 1 - 0
debian/changelog

@@ -102,6 +102,7 @@ dpkg (1.9.0) unstable; urgency=low
   * dselect has a configuration file as well now
   * Get ENOENT value at runtime in dpkg-divert instead of hardcoding it.
     Closes: Bug# 31620
+  * Fix wrong ENOENT test in dpkg-divert. Closes: Bug#95088
   * Add support for more SuperH variants (sh[34]{,eb}-linux-gnu)
 
  -- Wichert Akkerman <wakkerma@debian.org>  Tue, 24 Apr 2001 02:23:46 +0200

+ 1 - 1
scripts/dpkg-divert.pl

@@ -222,7 +222,7 @@ sub checkrename {
 	open (TMP, ">> ${file}.dpkg-devert.tmp") || $! == ENOENT ||
 		&quit("error checking \`$file': $!");
 	close TMP;
-	if ($1 == ENOENT) {
+	if ($! == ENOENT) {
 		$dorename = 0;
 	} else {
 		unlink ("${file}.dpkg-devert.tmp");