My patch to this bug
sa...@developer:~$ cat packagekit-backend-apt.patch
--- /usr/share/PackageKit/helpers/apt/aptBackend.py 2010-03-08
22:46:16.000000000 +0300
@@ -1495,7 +1495,7 @@
# reporting. We only receive a failure string.
# FIXME: Doesn't detect if all downloads failed - bug in python-apt
self.message(MESSAGE_REPO_METADATA_DOWNLOAD_FAILED,
- format_string(error.message))
+ format_string(unicode(error)))
self._open_cache(prange=(95,100))
self.percentage(100)
Package "packagekit-backend-apt" use deprecated in python 2.6 method
"error.message", and method format_string get to input SytemError
instead of normal string.
By the way, this is a error from apt with my trouble.
"FetchFailedException(SystemError('W:Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/lucid/Release Unable to find expected
entry non-free/binary-amd64/Packages in Meta-index file (malformed Release
file?)\n, W:Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/lucid-updates/Release Unable to find
expected entry non-free/binary-amd64/Packages in Meta-index file (malformed
Release file?)\n, W:Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/lucid-security/Release Unable to find
expected entry non-free/binary-amd64/Packages in Meta-index file (malformed
Release file?)\n, E:Some index files failed to download, they have been
ignored, or old ones used instead.',),)"
Now i just call unicode conversion for error, and format_string work
correct.
How can i help in improve diagnostic?
** Patch added: "packagekit-backend-apt.patch"
http://launchpadlibrarian.net/48248952/packagekit-backend-apt.patch
--
kpackagekit can't update package cache
https://bugs.launchpad.net/bugs/578605
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kpackagekit in ubuntu.
--
kubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs