rhino-linux / rhino-pkg

A wrapper for apt + snap + flatpak + Pacstall
GNU General Public License v3.0
23 stars 19 forks source link

Fix: Revert nala to use full-upgrade #32

Closed ajstrongdev closed 1 year ago

ajstrongdev commented 1 year ago

Changes in Nala v0.14.0 have affected how upgrades are handled.

The sudo nala update function that rhino-pkg utilises no-longer automatically removes packages, nor performs full-scale upgrades which is vital for when Ubuntu update their devel base.

oklopfer commented 1 year ago

With this, we are gunna need an interim version check, while waiting for users to upgrade.

if nala <=0.13.x use upgrade, if nala >=0.14.x use full-upgrade

ajstrongdev commented 1 year ago

With this, we are gunna need an interim version check, while waiting for users to upgrade.

Completely agree. Can we also remember to tag this release as rhino-pkg v0.1.2 since we forgot to tag v0.1.1 last time irrc 🙏

oklopfer commented 1 year ago

According to volitank

You can use the --full switch for compatible with both versions

ajstrongdev commented 1 year ago

Perfect, I will work on this ASAP.

Probably will take 3 hours before I can.

oklopfer commented 1 year ago

We can and should pass sudo nala upgrade --full --no-autoremove

It causes too many issues for users having stuff be removed when we drop it from a dependency (it is then set to auto-installed, meaning it’ll remove those things, and they may want to keep them), if anything we should add a --hard-type flag for when it should auto-remove