Merge pull request #87 from asteven/issue__package_pacman-absent
sync and remove require different options
This commit is contained in:
commit
d707f9feeb
1 changed files with 2 additions and 4 deletions
|
@ -25,8 +25,6 @@
|
||||||
# exec >&2
|
# exec >&2
|
||||||
# set -x
|
# set -x
|
||||||
|
|
||||||
pacopts="--needed --noconfirm --noprogressbar"
|
|
||||||
|
|
||||||
if [ -f "$__object/parameter/name" ]; then
|
if [ -f "$__object/parameter/name" ]; then
|
||||||
name="$__object/parameter/name"
|
name="$__object/parameter/name"
|
||||||
else
|
else
|
||||||
|
@ -57,10 +55,10 @@ fi
|
||||||
|
|
||||||
case "$state_should" in
|
case "$state_should" in
|
||||||
present)
|
present)
|
||||||
echo pacman "$pacopts" -S \"$name\"
|
echo pacman --needed --noconfirm --noprogressbar -S \"$name\"
|
||||||
;;
|
;;
|
||||||
absent)
|
absent)
|
||||||
echo pacman "$pacopts" -R \"$name\"
|
echo pacman --noconfirm --noprogressbar -R \"$name\"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown state: $state_should" >&2
|
echo "Unknown state: $state_should" >&2
|
||||||
|
|
Loading…
Reference in a new issue