summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-01-08 17:29:56 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-01-08 17:29:56 +0100
commitbcf8cd7eb1c222064de9fc19b06ca6f511bc1f04 (patch)
tree9497c062283e15445c9ec6edc9b80b84b6bf16b7
parent95afa2e49570e6059e5d9aa397fe944ea802f02e (diff)
downloaddevtools-bcf8cd7eb1c222064de9fc19b06ca6f511bc1f04.tar.gz
devtools-bcf8cd7eb1c222064de9fc19b06ca6f511bc1f04.tar.xz
mkarchroot: return 0 if there was no package to update in SyncFirst
-rwxr-xr-xmkarchroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkarchroot b/mkarchroot
index 5d30a6c..ac05a6b 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -34,7 +34,7 @@ usage() {
while getopts 'r:ufnhC:M:c:' arg; do
case "${arg}" in
r) RUN="$OPTARG" ;;
- u) RUN='/bin/sh -c "pacman -Syu --noconfirm; pacman -Qqu >/dev/null && pacman -Su --noconfirm"' ;;
+ u) RUN='/bin/sh -c "pacman -Syu --noconfirm && (pacman -Qqu >/dev/null && pacman -Su --noconfirm || exit 0)"' ;;
f) FORCE='y' ;;
C) pac_conf="$OPTARG" ;;
M) makepkg_conf="$OPTARG" ;;