Commit 92615c41 authored by pcy's avatar pcy
Browse files

fix derps

parent 29e841f7
...@@ -26,9 +26,7 @@ update_package() { ...@@ -26,9 +26,7 @@ update_package() {
local AFTER="$(exec_subcommand pkgcmd version "$PKG")" local AFTER="$(exec_subcommand pkgcmd version "$PKG")"
if [ "$BEFORE" != "$AFTER" ]; then if [ "$BEFORE" != "$AFTER" ]; then
exec_subcommand src-db reg "$PKG" "$AFTER" || return 2 exec_subcommand src-db reg "$PKG" "$AFTER" && return 1 || return 2
return 1
fi fi
return 0 return 0
...@@ -72,13 +70,13 @@ update_selection() { ...@@ -72,13 +70,13 @@ update_selection() {
else else
ERRORS="$ERRORS, $PKG" ERRORS="$ERRORS, $PKG"
fi fi
elif [ "$ERTV" = "1" ]; then elif [ "$RETV" = "1" ]; then
echo "$PKG" >> /tmp/upgrade_list echo "$PKG" >> /tmp/upgrade_list
fi fi
done done
if ! [ -z "$ERRORS" ]; then if ! [ -z "$ERRORS" ]; then
(>&2 echo "Failed to update the following packages: $ERRORS\n" \ (>&2 echo -e "Failed to update the following packages: $ERRORS\n" \
"Press any key to continue.") "Press any key to continue.")
local FOOBAR="" local FOOBAR=""
......
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