Public bug reported:

If somebody is incautiously advised to remove /opt/click.ubuntu.com/* as
part of trying to figure out a problem with the click scope, then "click
list" gets very confused because the symlinks under
/opt/click.ubuntu.com/.click/ are still there but are now dangling.

phablet@ubuntu-phablet:/$ click list --manifest
Traceback (most recent call last):
  File "/usr/bin/click", line 84, in <module>
    sys.exit(main())
  File "/usr/bin/click", line 79, in main
    mod.run(args)
  File "/usr/lib/python3/dist-packages/click/commands/list.py", line 59, in run
    for package, version, path, writeable in list_packages(options):
  File "/usr/lib/python3/dist-packages/click/commands/list.py", line 40, in 
list_packages
    package, version, registry.path(package),
  File "/usr/lib/python3/dist-packages/click/user.py", line 297, in path
    (package, self.user))
KeyError: 'com.ubuntu.developer.dgalg.wordchain does not exist in any database 
for user phablet'

This is not really a valid thing to do, especially now that click
supports proper package removal, but it would be nice to fail less
badly.

** Affects: click (Ubuntu)
     Importance: Medium
         Status: Triaged

** Changed in: click (Ubuntu)
       Status: New => Triaged

** Changed in: click (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1225023

Title:
  Manually removing packages without removing user symlinks causes chaos

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1225023/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to