Ticket #1434 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

packagekit send wrong message when md5 miss match

Reported by: tick@… Owned by: thomas@…
Priority: high Milestone:
Component: ASU Version: unspecified
Severity: normal Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

pkcon send wrong error message
It's md5 miss match.

root@om-gta02:~# opkg install assassin
loading conf file /etc/opkg.conf
loading conf file /etc/opkg/gta02.conf
Upgrading assassin on root from 0.2+svnr141-r5.01 to 0.2+svnr142-r5.01...
Downloading
http://192.168.0.200/build/deploy/glibc/ipk/armv4t//assassin_0.2+svnr142-r5.01_armv4t.ipk
Nothing to be done
Collected errors:
Package assassin md5sum mismatch. Either the opkg or the package index are
corrupt. Try 'opkg update'.
root@om-gta02:~# pkcon install 'assassin;;;'
installing assassin [ == ]
Error: package-already-installed :

[===============]

install-packages runtime was 0.3 seconds
root@om-gta02:~#

Attachments

improve-install-update-error-handling (3.0 KB) - added by thomas@… 11 years ago.
Improve the error handling for update and install functions, with new opkg.

Change History

comment:1 Changed 11 years ago by thomas@…

  • Status changed from new to closed
  • Resolution set to invalid

Upgrading assassin on root from 0.2+svnr141-r5.01 to 0.2+svnr142-r5.01...

assassin was already installed. "opkg-cl install" will upgrade if available, but
pkcon will not upgrade when given the install command.

comment:2 Changed 11 years ago by tick@…

If I tried to call pkcon update.
It is still buggy. (should have error message)

root@om-gta02:~# pkcon update 'assassin;0.2+svnr141-r5.01;armv4t;oe-armv4t'
installing assassin-0.2+svnr141-r5.01 [===============] (100%)
update-package runtime was 0.4 seconds
root@om-gta02:~# opkg install assassin
loading conf file /etc/opkg.conf
loading conf file /etc/opkg/gta02.conf
Upgrading assassin on root from 0.2+svnr141-r5.01 to 0.2+svnr142-r5.01...
Downloading
http://192.168.0.200/build/deploy/glibc/ipk/armv4t//assassin_0.2+svnr142-r5.01_armv4t.ipk
Nothing to be done
Collected errors:
Package assassin md5sum mismatch. Either the opkg or the package index are
corrupt. Try 'opkg update'.
root@om-gta02:~#

Changed 11 years ago by thomas@…

Improve the error handling for update and install functions, with new opkg.

comment:3 Changed 11 years ago by thomas@…

  • Status changed from closed to reopened
  • Resolution invalid deleted

Re-opening as per comment 2.

comment:4 Changed 11 years ago by thomas@…

  • Status changed from reopened to closed
  • Resolution set to fixed

Added a new error enum to packagekit to support "corrupt-package" message. This
should finally resolve the issue.

Note: See TracTickets for help on using tickets.