Package: dpkg
Version: 1.16.2
Severity: normal
File: /usr/bin/update-alternatives

# update-alternatives --remove /path/to/file name ; echo $?
0

If I add --verbose I get

# update-alternatives --verbose --remove /path/to/file name
update-alternatives: no alternatives for /path/to/file.

That should return an error because the arguments are switched, correct
would be
  update-alternatives --remove name /path/to/file

The --install option does the check correctly:

# update-alternatives --verbose --install /bin/some-link /path/to/file name 42
update-alternatives: error: alternative name (/path/to/file) must not contain 
'/' and spaces.

The missing check on remove causes several maintainer scripts to not
properly remove an alternative because they use garbled arguments, but
this is not noticed.


Andreas



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to