NNBnh/superb-bootstrap

Packages are not installed though seem to be configured properly

Closed this issue · 3 comments

Hi! I'm trying to bootstrap a VM from my laptop. Both run Hash Linux - Arch-based distro.
My packagelist looks like this (I use only PAC: and AUR: suffixes):

image

setup is unchanged.

When I clone the repo to VM and run ./setup, it makes symlinks but doesn't install any packages. The output is this:

image

NNBnh commented

Hello @weiss-d ,Sorry for this inconvenience and thank you for the bug report, this bug is from the Termux supported and it's had been fixed.

The fix:

Please update this block of code from:

superb-bootstrap/setup

Lines 137 to 153 in e241495

for packagemanager_check in 'Termux' 'APT' 'Pacman' 'Portage' 'Slackpkg' 'XBPS' 'Zypper'; do
[ -x $(eval "command -v \"\$${packagemanager_check}_PM\"") ] && {
PACKAGEMANAGER_MAIN="$packagemanager_check"
break
}
done
[ "$PACKAGEMANAGER_MAIN" != 'Termux' ] && {
[ "$PACKAGEMANAGER_MAIN" = 'Pacman' ] && PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST AUR"
[ "$PACKAGEMANAGER_MAIN" = 'Slackpkg' ] && PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST SBO"
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Flatpak"
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Homebrew"
}
if [ "$PACKAGEMANAGER_MAIN" = 'APT' ] || [ "$PACKAGEMANAGER_MAIN" = 'Pacman' ]; then
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Snap"
fi

to:

superb-bootstrap/setup

Lines 137 to 155 in 316e813

if [ -x $(eval "command -v \"termux-setup-storage\"") ]; then
PACKAGEMANAGER_MAIN='Termux'
else
for packagemanager_check in 'APT' 'Pacman' 'Portage' 'Slackpkg' 'XBPS' 'Zypper'; do
[ -x $(eval "command -v \"\$${packagemanager_check}_PM\"") ] && {
PACKAGEMANAGER_MAIN="$packagemanager_check"
break
}
done
[ "$PACKAGEMANAGER_MAIN" = 'Pacman' ] && PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST AUR"
[ "$PACKAGEMANAGER_MAIN" = 'Slackpkg' ] && PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST SBO"
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Flatpak"
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Homebrew"
if [ "$PACKAGEMANAGER_MAIN" = 'APT' ] || [ "$PACKAGEMANAGER_MAIN" = 'Pacman' ]; then
PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST Snap"
fi
fi

Hi @NNBnh !
I've changed these lines in my repo, but result are still the same.

image

image

The quick'n'dirty workaround now is to replace lines 137-153 with:

		PACKAGEMANAGER_MAIN='Pacman'
		PACKAGEMANAGER_LIST="$PACKAGEMANAGER_LIST AUR"

As long as I have no Snap and Flatpak packs.