Akshara loops when bpkg isn't available (likely not related to being bpkg specifically)

Under the assumption that bpkg was available as an Arch package, I tried to put it in the packages section. When running Akshara, it seemed to loop for a bit before exiting. (I understand that bpkg isn't available as a package after looking at its docs more, but I don't think this loop is the intended behavior. Additionally, to not waste time and bandwidth for other stuff to run before getting to packages/aur-packages and finding that a package doesn't exist, at the start there should be a check to see if all the packages exist before starting installation. Attached is the output of akshara.
3 Replies
hanna (password generator)
I haven't had this occur with any other unavailable packages, so I'm not sure what's going on here.
Asterisk
Asterisk2mo ago
I don’t have bpkg and it works fine It’s not an arch package It’s not packaged anywhere It’s only available as a tar.gz from gitlab
hanna (password generator)
yeah, i got that after reading the docs, as i mentioned. but akshara trying to install it over and over 31 times doesn't seem right... i'm not sure why it only happened that time, though i found the code responsible for this behavior:
counter = 0
while True:
return_val = exec_chroot('pacman', '-Syu', '--noconfirm')
counter += 1
if counter > 30:
error('failed to download packages')
exit(50)
if return_val == 0:
break
counter = 0
while True:
return_val = exec_chroot('pacman', '-Syu', '--noconfirm')
counter += 1
if counter > 30:
error('failed to download packages')
exit(50)
if return_val == 0:
break
not sure why it was coded like this, gonna need @Rudra to weigh in here
i'm not sure why it only happened that time, though
my best guess is that i'm just dumb and didn't see it looping 31 times previously
Want results from more Discord servers?
Add your server