index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Chantry Xavier <shiningxc@gmail.com> | 2008-02-02 23:24:49 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-02-05 19:35:41 -0600 |
commit | e81dec9b8c65f7c882f5f447cdc117783259f4a4 (patch) | |
tree | c9eaff9cb355c23d07192a6df02af47f89ac2a2d /contrib/updatesync | |
parent | eca30ed66accd7c1555eb94cbdea60051efcf7f3 (diff) |
-rwxr-xr-x | contrib/updatesync | 18 |
diff --git a/contrib/updatesync b/contrib/updatesync index 9d5d54e9..f88e8237 100755 --- a/contrib/updatesync +++ b/contrib/updatesync @@ -58,17 +58,6 @@ die () { exit 1 } -check_force () { - local i - for i in ${options[@]}; do - local lc=$(echo $i | tr [:upper:] [:lower:]) - if [ "$lc" = "force" ]; then - true - fi - done - false -} - # PROGRAM START if [ "$1" = "-h" -o "$1" = "--help" ]; then @@ -109,7 +98,6 @@ pkgdir="$(pwd)" if [ "$4" != "" ]; then pkgdir="$4" fi -opt_force="" if [ "$action" = "upd" ]; then # INSERT / UPDATE if [ ! -f "$option" ]; then @@ -128,11 +116,7 @@ if [ "$action" = "upd" ]; then # INSERT / UPDATE die "could not find %s-%s-%s-%s%s - aborting" $pkgname $pkgver $pkgrel $CARCH $PKGEXT fi - if check_force; then - opt_force="--force" - fi - - repo-add "$pkgdb" $opt_force "$pkgfile" + repo-add "$pkgdb" "$pkgfile" else # DELETE fname="$(basename $option)" if [ "$fname" = "PKGBUILD" ]; then |