From bcf8cd7eb1c222064de9fc19b06ca6f511bc1f04 Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <pierre@archlinux.de>
Date: Sat, 8 Jan 2011 17:29:56 +0100
Subject: mkarchroot: return 0 if there was no package to update in SyncFirst

---
 mkarchroot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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" ;;
-- 
cgit v1.2.3-2-g168b