-
Bug
-
Resolution: Fixed
-
Major
-
None
I'm working on a CIAT test to automate the removal and (re)installation of app fwk packages, but I noticed that it's impossible to tell from afm-util whether the package removal is successful or not:
afm-util remove <id> returns the same return value (zero) and the same stdout (null) whether the app is actually present or not.
raspberrypi3:~# afm-util list |grep \"id\" "id":"radio@0.1", "id":"hvac@0.1", "id":"homescreen@0.1", "id":"poi@0.1", "id":"phone@0.1", "id":"mixer@6.90", "id":"navigation@0.1", "id":"settings@0.1", "id":"launcher@0.1", "id":"mediaplayer@0.1", "id":"dashboard@0.1", raspberrypi3:~# afm-util remove dashboard@0.1 null raspberrypi3:~# echo $? 0 raspberrypi3:~# afm-util list |grep \"id\" "id":"radio@0.1", "id":"hvac@0.1", "id":"homescreen@0.1", "id":"poi@0.1", "id":"phone@0.1", "id":"mixer@6.90", "id":"navigation@0.1", "id":"settings@0.1", "id":"launcher@0.1", "id":"mediaplayer@0.1",
Here we can see that "dashboard" was removed.
However, if I try to remove it again, I get exactly the same return values:
raspberrypi3:~# afm-util remove dashboard@0.1 null raspberrypi3:~# echo $? 0 raspberrypi3:~#
Similarily, if I try to remove a dummy package which I know does not exist, it appears to be successfull also:
raspberrypi3:~# afm-util remove nonexistant-dummy@0.1 null raspberrypi3:~# echo $? 0 raspberrypi3:~#