Allow amendment of critical extra property
Hi,
The attached patch opkg-trans_allow_amend_critical.patch makes it possible for the user to mark arbitrary packages as critical as well as clear the critical flag in /etc/updater/user.lua.
Example of use:
Package "dnsmasq" { critical = false }
Uninstall "dnsmasq" { priority = 60 }
Install "dnsmasq-full" { critical = true }
Result:
WARN:Script revision-specific not found, but ignoring its absence as requested
WARN:Script serial-specific not found, but ignoring its absence as requested
WARN:Request not satisfied to install package: dnsmasq
WARN:Request not satisfied to uninstall package: dnsmasq
WARN:Request not satisfied to install package: dnsmasq
INFO:Queue install of dnsmasq-full/turris/2.73-3
INFO:Queue removal of dnsmasq
INFO:Executing preupdate hooks...
INFO:Subprogram output: /etc/updater/hook_preupdate/05_schnapps.sh:
Snapshot number 25 created
INFO:End of subprogram output
WARN:Config file /etc/config/dhcp modified by the user. Backing up the new one into /etc/config/dhcp-opkg
Output from dnsmasq-full.postinst:
udhcpc: started, v1.25.1
udhcpc: sending discover
udhcpc: no lease, failing
INFO:Executing postupdate hooks...