Bug 8349 - [internalsolv] dist-upgrade feature (old issue #126)
Summary: [internalsolv] dist-upgrade feature (old issue #126)
Status: ACCEPTED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided enhancement
Target Milestone: ---
Assignee: Alex Stewart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-09-21 00:58 UTC by Alejandro del Castillo
Modified: 2021-07-08 15:36 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro del Castillo 2015-09-21 00:58:15 UTC
Inrtoduce a dist-upgrade command that update only feed files in order to perform a distribution upgrade.

Originally reported by stefano.cordibella, Apr 2, 2014
-----------------------------------------------------------------------------

#2 peteru711 (Oct 15, 2014)
How should this feature work?

In my case the feed configuration is owned by a package:

 # opkg search /etc/opkg/mips32el-feed.conf
 oe-alliance-feeds-configs - 1.0-r16

So, to cause a distro upgrade, I'd have the user upgrade the feed package first.

How would the "dist-upgrade" command work? Would it not be the same as:

 # opkg install http://my.new.feed/my-feeds_new.version.ipk


#3 paul.betafive (Oct 16, 2014)
You'd have to look at what dpkg/apt does on dist-upgrade. I haven't looked at this and don't plan to any time soon.

If your feed config is in a package, you can set the hold flag on the package so it doesn't get automatically updated. Then you can write a dist-upgrade shell script to unhold, upgrade and then re-hold that package, then do a full 'opkg update && opkg upgrade' to pull packages from the new feeds. If any specific post dist-upgrade commands are needed, they can be added as to a postinst script for the package which contains the feed config.
Comment 1 Alejandro del Castillo 2017-05-22 17:02:08 UTC
Added support in the libsolv backend in 8a2ac80