use rpm -q to get status

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-02 02:19:47 +02:00
parent bcc7d0e795
commit a778dee9fc

View file

@ -27,4 +27,4 @@ else
name="$__object_id"
fi
pacman -Q "$name" 2>/dev/null | awk '{ print $2 }'
rpm -q "$name" 2>/dev/null || true