hyperb1iss/uchroma

Clean Uninstall Fails

Closed this issue · 0 comments

On a build failure, eg: ModuleNotFoundError: No module named 'grapefruit' the uninstall is not clean:

➜  uchroma git:(master) sudo make uninstall
find: ‘//usr/local/lib/python3*’: No such file or directory
readlink: invalid option -- '*'
Try 'readlink --help' for more information.
install -m 644 -v -D install/org.chemlab.UChroma.service //usr/share/dbus-1/services/org.chemlab.UChroma.service
removed '//usr/share/dbus-1/services/org.chemlab.UChroma.service'
'install/org.chemlab.UChroma.service' -> '//usr/share/dbus-1/services/org.chemlab.UChroma.service'
install -m 644 -v -D install/uchromad.service //usr/lib/systemd/user/uchromad.service
removed '//usr/lib/systemd/user/uchromad.service'
'install/uchromad.service' -> '//usr/lib/systemd/user/uchromad.service'

The uchromad service is not properly uninstalled due to the first failure from above:

➜  uchroma git:(master) ls -lht /usr/lib/systemd/user
total 152K              
-rw-r--r-- 1 root root  165 Mar  7 11:08 uchromad.service