Open tavinus opened 5 years ago
I'd make it simple and create a config file with a simple list of packages to be ignored. i.e all core packages should be in the default config file, as you don't want to mess with mlwifi for example in between versions
My preferred solution would be to have a single bash var inside a config file that could be sourced by the main program. Seems easy enough, could be an array or a string with package names separated by spaces.
Then we would still need to decide some stuff:
Also, we need to create a default list
of those problematic packages, but that can be tricky as well.
Different versions and archs may have different lists, which will add a lot complexity.
But then other people could contribute with their black lists as well.
I guess we should just use uci
for the config.
Makes more sense and is a lot more powerful.
https://openwrt.org/docs/guide-user/base-system/uci
This way we just use uci
to add/read/etc the config file on /etc/config/opkg-upgrade
.
This could also make it easier to create a web interface in the future.
i just started play with this feature. Problem arises, when excluded packet is listed in dependencies of other package. My idea is to make "blacklist" as hard suggestion, but not strict reject(or you think it is better to exclude some important updates). But choice can be done with some start parameter
Got a donation asking to be able to blacklist packages.
Seems like a nice addition to avoid problematic packages that should not be upgraded.
Need more research on some things: