Coder Social home page Coder Social logo

Blacklist packages about opkg-upgrade HOT 5 OPEN

tavinus avatar tavinus commented on July 28, 2024
Blacklist packages

from opkg-upgrade.

Comments (5)

Goro2030 avatar Goro2030 commented on July 28, 2024

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

from opkg-upgrade.

tavinus avatar tavinus commented on July 28, 2024

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:

  • Where to put this config file
  • How to add / remove entries to it (manually editing config files could break the whole script)
  • Config files should probably have a default PATH, but having a parameter to set a custom config PATH would be nice
  • This enhancement should probably come together with the ability of selecting packages to install (wishlist - #3). Then we could just select the packages to be blacklisted from the list as well. Should have both interactive and non-interactive options if possible.

from opkg-upgrade.

tavinus avatar tavinus commented on July 28, 2024

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.

from opkg-upgrade.

tavinus avatar tavinus commented on July 28, 2024

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.

from opkg-upgrade.

lareq avatar lareq commented on July 28, 2024

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

from opkg-upgrade.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.