Commit a53b5202 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play yandex-browser: add checking for yandex-browser-stable package from ALT repo

parent 3f833a5e
......@@ -7,6 +7,7 @@ DESCRIPTION="Chromium with GOST support from the official site"
. $(dirname $0)/common.sh
# TODO: use get_pkgvendor = "ALT Linux Team"
if epm installed chromium-gost ; then
fatal "Package chromium-gost is already installed from ALT repository."
fi
......
......@@ -47,6 +47,11 @@ print_product_alt()
echo "$*"
}
get_pkgvendor()
{
epm print field Vendor for package $1
}
case "$1" in
"--remove")
epm remove $PKGNAME
......
......@@ -16,6 +16,15 @@ SUPPORTEDARCHES="x86_64"
. $(dirname $0)/common.sh
if epm installed yandex-browser-stable && [ "$(get_pkgvendor yandex-browser-stable)" = "YANDEX LLC" ] ; then
if [ "$(epm print field Vendor for package yandex-browser-stable)" = "Yandex Browser Team <browser@support.yandex.ru>" ] ; then
fatal "Package yandex-browser-stable is already manually from https://browser.yandex.ru/."
else
fatal "Package yandex-browser-stable is already installed from ALT repository."
fi
fi
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta
URL="https://repo.yandex.ru/yandex-browser"
......
......@@ -11,7 +11,7 @@ PRODUCTDIR=/opt/yandex/browser-beta
. $(dirname $0)/common-chromium-browser.sh
subst '1iConflicts:yandex-browser-stable' $SPEC
subst '5iProvides: yandex-browser = %{version}' $SPEC
set_alt_alternatives 65
......
......@@ -12,6 +12,8 @@ PRODUCTDIR=/opt/yandex/browser
subst '1iConflicts:yandex-browser-beta' $SPEC
subst '5iProvides: yandex-browser = %{version}' $SPEC
set_alt_alternatives 65
copy_icons_to_share
......
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