[Suggestion] dont install flatpack or snap unless listed in packagesList
Closed this issue · 4 comments
I second this. I'm using Arch Linux and I commented out the following lines because I only install packages from official Arch repositories and from the AUR.
Lines 131 to 132 in 637614e
Maybe doing something like this?
if [[ "$PACKAGEMANAGER_MAIN" = 'Pacman' ]]; then
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST AUR"
if [[ "grep 'FLA:' packageslist" ]]; then
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Flatpak"
elif [[ "grep 'SNA:' packageslist" ]]; then
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Snap"
fi
fi
if [[ "$PACKAGEMANAGER_MAIN" != 'XBPS' ]]; then
if [[ "grep 'SNA:' packageslist" ]]; then
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Snap"
fi
fi
That's just an idea, I'm sure @NNBnh could come up with a much more elegant solution than mine.
Sorry for not document this better but this is already a feature of SBB, it loop through all the package manager that can be use on your system:
Line 148 in 637614e
find all package with match mark:
Line 152 in 637614e
if their is package with match mark, SBB will setup it package manager and install it's packages:
Lines 154 to 162 in 637614e
it will also remove packages with match mark out of packages_list
so those package don't get reinstall on another package manager later on:
Line 155 in 637614e
Oh ok, I didn't realize this was the case, awesome!
This feature has been documented in SBB 1.5.5