2011-01-25 17:52:59 |
Evgeny Kapun |
description |
Binary package hint: python-apt
This code should work, but doesn't:
>>> import apt_pkg
>>> apt_pkg.init()
>>> with apt_pkg.SystemLock():
... x = apt_pkg.Cache()
... del x
Reading package lists... Done
Building dependency tree
Reading state information... Done
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
SystemError: E:Not locked
Architecture: amd64
apt 0.8.10ubuntu1
python-apt 0.7.100.1ubuntu4 |
Binary package hint: python-apt
This code should work, but doesn't:
>>> import apt_pkg
>>> apt_pkg.init()
>>> with apt_pkg.SystemLock():
... x = apt_pkg.Cache()
... del x
Reading package lists... Done
Building dependency tree
Reading state information... Done
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
SystemError: E:Not locked
(lines beginning with ... should be indented, but Launchpad collapses multiple spaces into one when not at the beginning of the line)
Architecture: amd64
apt 0.8.10ubuntu1
python-apt 0.7.100.1ubuntu4
|
|