Simplify update call as pacman does no longer support SyncFirst

This commit is contained in:
Pierre Schmitz 2013-04-06 18:43:01 +02:00
parent 4bcafd9768
commit 71b15aafb6
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,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 || exit 0)"' ;;
u) RUN='pacman -Syu --noconfirm' ;;
f) FORCE='y' ;;
C) pac_conf="$OPTARG" ;;
M) makepkg_conf="$OPTARG" ;;
@ -128,7 +128,7 @@ chroot_lock () {
chroot_run() {
local dir=$1
shift
eval systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null
systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null
}
# }}}