summaryrefslogtreecommitdiff
path: root/update-cleansystem
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-03 13:37:08 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-03 13:37:08 -0300
commit9983b0c757834d61b9099a5953dec9d92330ac76 (patch)
tree25da78388d742dd71b581df54d3fef33f34b61b4 /update-cleansystem
parent38550a26dc66a8e5dd462da65acaf56119964536 (diff)
parent958043bd456f8e60f54a2b2e3a601439394558ca (diff)
Merge branch 'master' into smart-cleanup
Conflicts: update-cleansystem
Diffstat (limited to 'update-cleansystem')
-rwxr-xr-xupdate-cleansystem9
1 files changed, 7 insertions, 2 deletions
diff --git a/update-cleansystem b/update-cleansystem
index 7c652ab..6bec742 100755
--- a/update-cleansystem
+++ b/update-cleansystem
@@ -3,6 +3,7 @@
# Creates a fake Parabola root and writes to cleansystem all
# packages installable from base and base-devel plus extras.
+set -e
# Copyright 2012 Nicolás Reynolds, Luke Shumaker
# ---------- GNU General Public License 3 ----------
@@ -59,5 +60,9 @@ pacman -b "${db_dir}" --config /etc/pacman.conf -Sy 2>/dev/null
pacman -b "${db_dir}" \
--config /etc/pacman.conf \
-Sp --print-format "%n" \
- base base-devel sudo "$@" | sort > "$cleansystem"
-pacman -Sy --needed --noconfirm base base-devel sudo "$@"
+ base base-devel sudo $@ | sort > "$cleansystem"
+
+# Ensures everything's installed
+pacman -Sy --needed --noconfirm base base-devel sudo $@
+
+exit $?