Commit 92fa18d6 authored by pcy's avatar pcy
Browse files

don't quit if a package fails to compile

parent 345effcd
......@@ -36,12 +36,20 @@ update_package() {
upgrade_package() {
exec_subcommand pkgcmd config "$1" && \
exec_subcommand pkgcmd build "$1" && \
exec_subcommand strace "$1" || exit 1
exec_subcommand strace "$1"
return $?
}
upgrade_pkgs() {
# TODO: speed this up, maybe by parallellising this?
local ERRORS=""
while read -r PKG; do
upgrade_package "$PKG"
if ! upgrade_package "$PKG"; then
if [ -z "$ERRORS" ]; then
ERRORS="$PKG"
else
ERRORS="$ERRORS, $PKG"
fi
fi
done < "/tmp/upgrade_list"
rm /tmp/upgrade_list
}
......@@ -59,6 +67,7 @@ update_selection() {
}
update_all() {
# TODO: speed this up, maybe by parallellising this?
while read -r PKG; do
echo -n "$PKG: "
if ! update_package "$PKG"; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment