#18479: [OPKG] PKG_UPGRADE not set correctly for use inside package/preinst
------------------------------+----------------------------------
Reporter: chris5560 | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Keywords: opkg PKG_UPGRADE |
------------------------------+----------------------------------
PKG_UPGRADE flag not set correctly during the whole upgrade process
during "Installing" everything is OK
during "Upgrading" it's not set correctly when running Package/preinst
see console output below
{{{
root@OpenWrt:~# opkg install ./privoxy_3.0.21-1_x86.ipk
Installing privoxy (3.0.21-1) to root...
OLD - Package/privoxy/preinst
PKG_UPGRADE = 0
Configuring privoxy.
OLD - Package/privoxy/postinst
PKG_UPGRADE = 0
root@OpenWrt:~# opkg install ./privoxy_3.0.22-1_x86.ipk
Upgrading privoxy on root from 3.0.21-1 to 3.0.22-1...
NEW - Package/privoxy/preinst
PKG_UPGRADE = 0
Configuring privoxy.
NEW - Package/privoxy/postinst
PKG_UPGRADE = 1
root@OpenWrt:~#
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18479>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets