Commit f691b165 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: check already installed package with is_repacked_package

parent 02dff226
......@@ -7,10 +7,7 @@ DESCRIPTION="Chromium with GOST support from the official site"
. $(dirname $0)/common.sh
if epm installed chromium-gost && [ "$(get_pkgvendor chromium-gost)" = "ALT Linux Team" ] ; then
echo "Package chromium-gost is already installed from ALT repository."
exit 0
fi
is_repacked_package chromium-gost || exit 0
#arch=$(epm print info --distro-arch)
#pkgtype=$(epm print info -p)
......
......@@ -6,11 +6,7 @@ DESCRIPTION="Codium from the official site"
. $(dirname $0)/common.sh
if epm installed $PKGNAME && [ "$(get_pkgvendor $PKGNAME)" = "ALT Linux Team" ] ; then
echo "Package $PKGNAME is already installed from ALT repository."
exit 0
fi
is_repacked_package || exit 0
VERSION="$2"
......
......@@ -22,10 +22,8 @@ fi
. $(dirname $0)/common.sh
if epm installed $PKGNAME && [ "$(get_pkgvendor $PKGNAME)" = "ALT Linux Team" ] ; then
echo "Package $PKGNAME is already installed from ALT repository."
exit 0
fi
is_repacked_package || exit 0
arch="$(epm print info -a)"
case "$arch" in
......
......@@ -10,6 +10,8 @@ epm installed $REPOPKGNAME && PKGNAME=$REPOPKGNAME
. $(dirname $0)/common.sh
is_repacked_package $REPOPKGNAME || exit 0
res=0
if ! epm install $REPOPKGNAME ; then
PKGURL="https://cdn.akamai.steamstatic.com/client/installer/steam.deb"
......
......@@ -15,15 +15,7 @@ SUPPORTEDARCHES="x86_64"
. $(dirname $0)/common.sh
if epm installed $PKGNAME && [ "$(get_pkgvendor $PKGNAME)" = "YANDEX LLC" ] ; then
if [ "$(epm print field Packager for package $PKGNAME)" = "Yandex Browser Team <browser@support.yandex.ru>" ] ; then
echo "Package $PKGNAME is already installed manually from https://browser.yandex.ru/."
else
echo "Package $PKGNAME is already installed from ALT repository."
fi
exit 0
fi
is_repacked_package || exit 0
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta
......
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