click unregister on preinstalled app causes exception
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.
File "/usr/bin/click", line 79, in main
mod.run(args)
File "/usr/lib/
in run
registry.
File "/usr/lib/
osextras.
File "/usr/lib/
force
os.
FileNotFoundError: [Errno 2] No such file or directory: '/opt/click.
.click/
Indeed, /opt/click.u.c is empty and .click doesn't exist there.
Cheers,
Related branches
- Colin Watson: Approve
- Ubuntu CI managed package branches: Pending requested
-
Diff: 485 lines (+269/-70)11 files modifiedREADME (+1/-0)
click/build.py (+10/-22)
click/framework.py (+138/-0)
click/install.py (+8/-28)
click/paths.py.in (+1/-0)
click/tests/helpers.py (+29/-0)
click/tests/test_build.py (+39/-5)
click/tests/test_install.py (+2/-4)
debian/changelog (+8/-0)
doc/file-format.rst (+1/-2)
doc/index.rst (+32/-9)
Changed in click (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Colin Watson (cjwatson) |
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 GLib-related build-dependencies are removed for backporting.
PackageKit/
* 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