Modify

Opened 3 years ago

Closed 3 years ago

#18479 closed defect (fixed)

[OPKG] PKG_UPGRADE not set correctly for use inside package/preinst

Reported by: chris5560 Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: opkg PKG_UPGRADE Cc:

Description

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:~# 

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by anonymous

Before or after r43493 ?

comment:2 Changed 3 years ago by chris5560

Both packages build an tested on r43510

comment:3 Changed 3 years ago by blogic

ok, will look into it i did indeed only check if the value is set in postinst

comment:4 Changed 3 years ago by blogic

  • Resolution set to fixed
  • Status changed from new to closed

please try current trunk.

/changeset/43581.html

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.