Commit 7be47c88 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: move detect code to a correct place

parent d15e9d09
...@@ -7,6 +7,25 @@ VERSION="$2" ...@@ -7,6 +7,25 @@ VERSION="$2"
TIPS="Run epm play wine=wine-vanilla to install wine-vanilla package" TIPS="Run epm play wine=wine-vanilla to install wine-vanilla package"
MAIN=wine MAIN=wine
PKGCOMMON="wine-mono wine-gecko winetricks"
[ -n "$VERSION" ] && [ "$VERSION" != "*" ] && MAIN="$VERSION"
VERSION=""
if [ "$MAIN" = "wine-etersoft" ] ; then
PKGCOMMON="wine-etersoft-mono wine-etersoft-gecko wine-etersoft-winetricks"
PKGNAMES="wine-etersoft"
PKGNAMES32="wine32-etersoft"
fi
# FIXME: wrong epm
if [ "$1" = "--remove" ] ; then
epm remove $(epm qp $MAIN-)
epm remove $PKGCOMMON
exit
fi
. $(dirname $0)/common.sh
vendor="$(epm print info -s)" vendor="$(epm print info -s)"
arch="$(epm print info -a)" arch="$(epm print info -a)"
...@@ -24,24 +43,6 @@ if [ "$vendor" != "alt" ] ; then ...@@ -24,24 +43,6 @@ if [ "$vendor" != "alt" ] ; then
exit exit
fi fi
PKGCOMMON="wine-mono wine-gecko winetricks"
[ -n "$VERSION" ] && MAIN="$VERSION"
VERSION=""
if [ "$MAIN" = "wine-etersoft" ] ; then
PKGCOMMON="wine-etersoft-mono wine-etersoft-gecko wine-etersoft-winetricks"
PKGNAMES="wine-etersoft"
PKGNAMES32="wine32-etersoft"
fi
if [ "$1" = "--remove" ] ; then
epm remove $(epmqp $MAIN-)
epm remove $PKGCOMMON
exit
fi
. $(dirname $0)/common.sh
ONLY32='' ONLY32=''
[ "$3" = "--only-i586" ] && ONLY32=1 && shift [ "$3" = "--only-i586" ] && ONLY32=1 && shift
......
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