diff options
author | Dan McGee <dan@archlinux.org> | 2008-02-02 20:39:50 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-02-02 20:39:50 +0100 |
commit | c492ca840c54d8d45d5916a280f2119c363e0aba (patch) | |
tree | a0ba13d659fbdf7b316ea75492dcd54b621447b9 /scripts/updatesync.sh.in | |
parent | 5647f7f512380200175675bc2fa5fa2e5892d997 (diff) | |
parent | 7cfb343b0fed556e82b6fbc81047c5461effab84 (diff) | |
download | pacman-c492ca840c54d8d45d5916a280f2119c363e0aba.tar.gz pacman-c492ca840c54d8d45d5916a280f2119c363e0aba.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'scripts/updatesync.sh.in')
-rw-r--r-- | scripts/updatesync.sh.in | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/updatesync.sh.in b/scripts/updatesync.sh.in index 900f11f3..c777d1f1 100644 --- a/scripts/updatesync.sh.in +++ b/scripts/updatesync.sh.in @@ -116,11 +116,11 @@ if [ "$4" != "" ]; then fi opt_force="" -if [ ! -f "$option" ]; then - die "$(gettext "%s not found")" $option -fi - if [ "$action" = "upd" ]; then # INSERT / UPDATE + if [ ! -f "$option" ]; then + die "$(gettext "%s not found")" $option + fi + unset pkgname pkgver pkgrel options source $option || die "$(gettext "failed to parse %s")" $option @@ -141,10 +141,14 @@ if [ "$action" = "upd" ]; then # INSERT / UPDATE else # DELETE fname="$(basename $option)" if [ "$fname" = "PKGBUILD" ]; then + if [ ! -f "$option" ]; then + die "$(gettext "%s not found")" $option + fi + unset pkgname pkgver pkgrel options source $option else - pkgname=$1 + pkgname=$option fi repo-remove "$pkgdb" "$pkgname" |