Commit e9ee4ca1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-play: don't list i586- only prescriptions

parent 47e0ee7d
...@@ -110,6 +110,8 @@ if [ "$1" = "--list" ] || [ "$1" = "--installed" ] ; then ...@@ -110,6 +110,8 @@ if [ "$1" = "--list" ] || [ "$1" = "--installed" ] ; then
exit exit
fi fi
[ "($DISTRVENDOR -a)" = "x86_64" ] && IGNOREi586='' || IGNOREi586=1
if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
echo "Run with a name of a play script to run:" echo "Run with a name of a play script to run:"
local i local i
...@@ -119,14 +121,18 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then ...@@ -119,14 +121,18 @@ if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
# print all # print all
#desc="$($i --description 2>/dev/null)" #desc="$($i --description 2>/dev/null)"
#[ -z "$desc" ] && continue #[ -z "$desc" ] && continue
basename $i .sh local name=$(basename $i .sh)
[ -n "$IGNOREi586" ] && rhas "$name" "^i586-" && continue
echo "$name"
done done
exit exit
fi fi
for i in $psdir/*.sh ; do for i in $psdir/*.sh ; do
desc="$($i --description 2>/dev/null)" desc="$($i --description 2>/dev/null)"
[ -z "$desc" ] && continue [ -z "$desc" ] && continue
printf " %-20s - %s\n" "$(basename $i .sh)" "$desc" local name=$(basename $i .sh)
[ -n "$IGNOREi586" ] && rhas "$name" "^i586-" && continue
printf " %-20s - %s\n" "$name" "$desc"
done done
echo echo
echo "run epm play --list to list installed only or --remove to remove one" echo "run epm play --list to list installed only or --remove to remove one"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment