adelcast / opkg_old

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

dist-upgrade feature #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Inrtoduce a dist-upgrade command that update only feed files in order to 
perform a distribution upgrade.

Original issue reported on code.google.com by stefano....@gmail.com on 2 Apr 2014 at 11:22

GoogleCodeExporter commented 9 years ago
This isn't a priority to me for the near future but it would be good to have 
for the v1.0 release. However, if you or someone else wants to add this feature 
I'm happy to accept patches sooner!

Original comment by paul.betafive on 2 Apr 2014 at 2:10

GoogleCodeExporter commented 9 years ago
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

Original comment by peteru...@gmail.com on 15 Oct 2014 at 11:40

GoogleCodeExporter commented 9 years ago
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.

Original comment by paul.betafive on 16 Oct 2014 at 12:01