Bug 8349

Summary: [internalsolv] dist-upgrade feature (old issue #126)
Product: [Yocto Project Subprojects] opkg Reporter: Alejandro del Castillo <alejandro.delcastillo>
Component: opkgAssignee: Alex Stewart <alex.stewart>
Status: ACCEPTED --- QA Contact:
Severity: enhancement    
Priority: Undecided    
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

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