Package: dpkg
Version: 1.13.19-1.dazh
Severity: minor
Tags: patch

There are some alternatives with no choices and
update-alternatives --all asks about them though skipping alternatives
with the only choice. There is a one-line patch for this problem.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages dpkg depends on:
ii  coreutils [textutils]         5.94-1     The GNU core utilities
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries

dpkg recommends no packages.

-- no debconf information

-- 
Dmitry
diff -ru dpkg-1.13.19/scripts/update-alternatives.pl 
dpkg-1.13.19-1.dazh/scripts/update-alternatives.pl
--- dpkg-1.13.19/scripts/update-alternatives.pl 2006-01-19 03:24:22.000000000 
+0300
+++ dpkg-1.13.19-1.dazh/scripts/update-alternatives.pl  2006-05-18 
01:17:27.000000000 +0400
@@ -155,6 +155,7 @@
            for ($j=0; $j<=$#slavenames; $j++) {
                $slavepath{$i,$j}= &gl("spath");
            }
+           $dataread=1;
        } else {
            # File not found - remove
            &pr("Alternative for $name points to $version - which wasn't found. 
 Removing from list of alternatives.")
@@ -166,7 +167,6 @@
        }
     }
     close(AF);
-    $dataread=1;
 } elsif ($! != &ENOENT) {
     &quit("failed to open $admindir/$name: $!");
 }

Attachment: signature.asc
Description: Digital signature

Reply via email to