adelcast / opkg_old

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

Opkg exit code -1 on successful upgrade #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*Reproduction steps*
1. Have package A depending on package B.
2. Do 'opkg-cl upgrade'

*Behavior*
Package A is upgraded first (version 1->2) and it also makes package B upgraded 
to version 2 (becasue of dependency). Then, the upgrade procedure gets to 
package B which is already upgraded but opkg still sees it in version 1 as it 
was when upgrade started. Obviously second attempt to install package B fails 
and makes opkg return code to be -1, even if all expected packages have 
actually been upgraded to expected versions.

*Expectations*
For successful upgrades I expect opkg exit code to be 0.

*Versions seen*
0.1.8 and 0.2.4, medial versions possibly impacted.

*Remarks*
Not tested what would happen if package B was upgraded before A because of 
different upgrade order.

*Workaround*
I'm calling opkg twice - if the first run upgraded what it was supposed to 
upgrade, then the second run has no work to do and just exits with '0'.

Original issue reported on code.google.com by michal.p...@gmail.com on 28 Nov 2014 at 12:03

GoogleCodeExporter commented 9 years ago
Sorry for the late response, I will look at this after I've finished the 
current code tidyup and tagged v0.3.0-rc1.

Original comment by paul.betafive on 14 Dec 2014 at 11:43

GoogleCodeExporter commented 9 years ago
Fixed on master thanks to Alejandro del Castillo.

Original comment by paul.betafive on 17 May 2015 at 10:08