click unregister on preinstalled app causes exception

Bug #1232066 reported by Loïc Minier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

Hi,

when tring to use unity-scope-click to remove a preinstalled package (dropping-letters) I get a pkcon error in the scope; there's a click crash file with a traceback:
PythonArgs: ['/usr/bin/click', 'unregister', '--user=phablet', 'com.ubuntu.dropp
ing-letters', '0.1.2.2']
Traceback:
 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/unregister.py", line 57,
in run
     registry.remove(package)
   File "/usr/lib/python3/dist-packages/click/user.py", line 295, in remove
     osextras.symlink_force(HIDDEN_VERSION, path)
   File "/usr/lib/python3/dist-packages/click/osextras.py", line 77, in symlink_
force
     os.symlink(source, link_name)
 FileNotFoundError: [Errno 2] No such file or directory: '/opt/click.ubuntu.com/
.click/users/phablet/com.ubuntu.dropping-letters'

Indeed, /opt/click.u.c is empty and .click doesn't exist there.

Cheers,

Related branches

Colin Watson (cjwatson)
Changed in click (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click - 0.4.9

---------------
click (0.4.9) saucy; urgency=low

  * Explicitly build-depend on pkg-config, since it's needed even if the
    PackageKit/GLib-related build-dependencies are removed for backporting.
  * Remove some stray documentation references to Ubuntu 13.04.
  * Ensure that the user's overlay database directory exists when
    unregistering a preinstalled package (LP: #1232066).
  * Support packages containing code for multiple architectures, and
    document the "architecture" manifest field (LP: #1214380, #1214864).
  * Correctly pass through return values of commands as the exit status of
    the "click" wrapper.
  * Extend "click info" to take a registered package name as an alternative
    to a path to a Click package file (LP: #1232118).
  * Force unpacked files to be owner-writeable (LP: #1232128).
 -- Colin Watson <email address hidden> Mon, 30 Sep 2013 15:24:49 +0100

Changed in click (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.