Modify

Opened 4 years ago

#16460 new defect

opkg: cached md5 hash used for manual installs

Reported by: jernej@… Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: Cc:

Description

opkg incorrectly uses a cached md5 hash (from the Packages file refreshed during an opkg update) even when one manually installs a package through the CLI by specifying a filename/URL instead of a package name. This can cause opkg to complain about an incorrect checksum:

# opkg install http://bindist.wlan-si.net/data/kmod-pktgen_3.10.36-1_ar71xx.ip
Downloading http://bindist.wlan-si.net/data/kmod-pktgen_3.10.36-1_ar71xx.ipk.
Installing kmod-pktgen (3.10.36-1) to root...
Collected errors:
 * opkg_install_pkg: Package kmod-pktgen md5sum mismatch. Either the opkg or the package indexare corrupt. Try 'opkg update'.
 * opkg_install_cmd: Cannot install package kmod-pktgen.

A workaround is to manually clear or update the packages cache.

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.