[packagekit] Pardus 2009 PackageKit 0.4.9 pisi backend
Aşkın Yollu
askin at askin.ws
Wed Aug 5 02:14:24 PDT 2009
Hi,
I am trainee on Pardus Linux Project.
I am trying to update pisi backend for Pardus 2009. Old code works, but some
subcommands don't work.
When i use get-details command, daemon get Segmentation fault.
What is the problem?
I use PackageKit 0.4.9
Thanks...
* Errors
$ pkcon get-details amsn
The daemon crashed mid-transaction!
# packagekitd --verbose
.......
TI:12:02:43 FI:pk-backend-spawn.c FN:pk_backend_spawn_get_envp,606
- setting evp 'LANG=tr_TR.UTF-8'
TI:12:02:43 FI:pk-network-stack-unix.c
FN:pk_network_stack_unix_is_valid,98
- destination eth0 is valid
TI:12:02:43 FI:pk-backend-spawn.c FN:pk_backend_spawn_get_envp,614
- setting evp 'NETWORK=TRUE'
TI:12:02:43 FI:pk-spawn.c FN:pk_spawn_argv,458
- argv[0] '/usr/share/PackageKit/helpers/pisi/pisiBackend.py'
TI:12:02:43 FI:pk-spawn.c FN:pk_spawn_argv,458
- argv[1] 'get-details'
TI:12:02:43 FI:pk-spawn.c FN:pk_spawn_argv,458
- argv[2] 'amsn;0.98b_11234-25-5;i686;'
TI:12:02:43 FI:pk-spawn.c FN:pk_spawn_argv,462
- envp[0] 'LANG=tr_TR.UTF-8'
TI:12:02:43 FI:pk-spawn.c FN:pk_spawn_argv,462
- envp[1] 'NETWORK=TRUE'
TI:12:02:43 FI:pk-spawn.c FN:pk_spawn_argv,485
- reusing instance
TI:12:02:43 FI:pk-spawn.c FN:pk_spawn_send_stdin,375
- sending 'get-details amsn;0.98b_11234-25-5;i686;'
TI:12:02:43 FI:pk-backend.c FN:pk_backend_set_allow_cancel,1484
- emit allow-cancel 1
TI:12:02:43 FI:pk-inhibit.c FN:pk_inhibit_remove,194
- cannot find item 0x8722130
TI:12:02:43 FI:pk-transaction.c
FN:pk_transaction_allow_cancel_emit,379
- emitting allow-cancel 1
TI:12:02:43 FI:pk-backend.c FN:pk_backend_emit_progress_changed,608
- emit progress 101, 101, 48, 0
TI:12:02:43 FI:pk-transaction.c
FN:pk_transaction_progress_changed_emit,359
- emitting percentage-changed 101, 101, 48, 0
Segmentation fault
* pisi backend code pisiBackend.py line 166 - 188
def get_details(self, package_ids):
""" Prints a detailed description for a given package """
self.allow_cancel(True)
self.percentage(None)
package = self.get_package_from_id(package_ids[0])[0]
if self.packagedb.has_package(package):
pkg = self.packagedb.get_package(package)
if self.groups.has_key(pkg.partOf):
group = self.groups[pkg.partOf]
else:
group = GROUP_UNKNOWN
self.details("%s-%s" % (pkg.name,
self.__get_package_version(pkg)),
pkg.license,
group,
pkg.description,
pkg.packageURI,
pkg.packageSize)
else:
self.error(ERROR_PACKAGE_NOT_FOUND, "Package was not found")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20090805/bb8cb2a4/attachment-0002.htm>
More information about the PackageKit
mailing list