[Bug 1595148] Re: 0 is returned when there is nothing to do
Sworddragon
1595148 at bugs.launchpad.net
Thu Jun 23 14:52:04 UTC 2016
It doesn't cause a problem for me I just thought a non-zero exit code
would be more appropriate on this warning but I'm fine if 0 is kept
here. But what about adding an entry twice? Should there be a warning
that this entry already exists and nothing is to do too?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binfmt-support in Ubuntu.
https://bugs.launchpad.net/bugs/1595148
Title:
0 is returned when there is nothing to do
Status in binfmt-support package in Ubuntu:
Incomplete
Bug description:
I'm using Ubuntu 16.10 dev with binfmt-support 2.1.6-1 and on trying
to remove a non-existent entry from the database a warning is being
displayed but 0 is returned like in this example:
root at ubuntu:~# update-binfmts --remove EXE /opt/wine-devel/bin/wine
update-binfmts: warning: /var/lib/binfmts/EXE does not exist; nothing to do!
root at ubuntu:~# echo $?
0
Additionally trying to add an entry twice for example with "update-binfmts --install EXE /opt/wine-devel/bin/wine --magic MZ" does not result in a warning that the entry already exists and 0 is returned too.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binfmt-support/+bug/1595148/+subscriptions
More information about the foundations-bugs
mailing list