-debug + fix

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-02 23:58:44 +01:00
parent 643c618a9f
commit ae4ff8b497

View file

@ -21,6 +21,10 @@
# Manage packages with Pacman (mostly archlinux)
#
# Debug
# exec >&2
# set -x
pacopts="--noconfirm --noprogressbar"
if [ -f "$__object/parameter/name" ]; then
@ -30,10 +34,10 @@ else
fi
state="$(cat "$__object/parameter/state")"
pkg_version="$(cat "$__object/explorer/pkg_version")"
case "$state" in
installed)
pkg_version="$(cat "$__object/explorer/pkg_version")"
# Empty? Not installed.
if [ -z "$pkg_version" ]; then