Opened 15 months ago

Last modified 15 months ago

#24918 new defect

Opkg Local Repository Priority

Reported by: gareththered Owned by: developers
Priority: normal Milestone:
Component: packages Version: Chaos Calmer 15.05
Keywords: Cc:


If I add a local repository to /etc/opkg.conf as follows:

src/gz base

and run opkg update, opkg downloads the Package.gz file from both the above URL and the preset one in /etc/opkg/distfeeds.conf.

A subsequent install (in my case of the lsblk package) downloads the package from the preset URL and not my local URL.

Shouldn't a local URL as configured in /etc/opkg.conf either replace or be of a higher priority than the preset URL in /etc/opkg/distfeeds.conf? While I could delete the entry from the distfeeds file, it will be reinstated the next time I flash the device.

Attachments (0)

Change History (1)

comment:1 Changed 15 months ago by gareththered

After further investigation, the identifier (2nd column) plays a significant part. If I change the line in opkg.conf to:

src/gz chaos_calmer_base

which matches the line in the original distfeeds.conf then I do not get duplicates, but instead I get an error (or should that really be a warning?):

Collected errors:
 * opkg_conf_parse_file: Duplicate src declaration (chaos_calmer_base Skipping.

If the whole idea of allowing these entries in opkg.conf is to override the default source URLs, then there is little point in raising an error or warning when this facility is used.

Add Comment

Modify Ticket

as new .

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

Note: See TracTickets for help on using tickets.