Skip to content

Commit 9139c66

Browse files
committed
install_packages: add another check for missing /var/cache/pi-apps
1 parent 861e35f commit 9139c66

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

api

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,12 @@ install_packages() { #Make some packages dependencies of the $app app. Package-n
564564
fi
565565
warning "Package download failed. (Attempt $i of 3)"
566566
done
567-
[ -f "$filename" ] || error "install_packages(): Downloaded package does not exist! ($filename)"
567+
568+
if [ ! -f "$filename" ] && [ ! -f /var/cache/pi-apps ];then
569+
error "User error: Uh-oh, the /var/cache/pi-apps folder went missing while installing packages.\nThis usually happens if you try to install several apps at the same time in multiple terminals."
570+
elif [ ! -f "$filename" ];then
571+
error "install_packages(): Downloaded package does not exist! ($filename)"
572+
fi
568573

569574
#determine the package name, package version, and architecture from the file
570575
local dpkg_deb_output="$(dpkg-deb -I "$filename")"

0 commit comments

Comments
 (0)