vorbereitung um mit zypper auch spezifische versionen zu unterstützen

parameter ptype auch beim package type zulassen, analog anderer
parameter von subtypes ...
This commit is contained in:
Daniel Heule 2013-12-11 13:44:01 +01:00
parent e1eae5604e
commit 785e54b311
2 changed files with 7 additions and 3 deletions

View file

@ -3,3 +3,4 @@ version
type
pkgsite
state
pstate

View file

@ -35,11 +35,14 @@ else
fi
case "$ptype" in
package|patch|pattern|product|srcpackage)
zypper se --match-exact -i -t "$ptype" "$name" | grep -E '^i' | cut -d " " -f 3 || true
package)
zypper search --details --match-exact --installed-only --type "$ptype" "$name" | grep -E '^i' | cut -d " " -f 3,7 || true
;;
patch|pattern|product|srcpackage)
zypper search --match-exact --installed-only --type "$ptype" "$name" | grep -E '^i' | cut -d " " -f 3 || true
;;
*)
echo "unknown type in __package_zypper explorer" &>2
echo "unknown ptype in __package_zypper explorer" &>2
exit 1
;;
esac