Commit e05a3ebf authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent 6b3cb635
......@@ -100,3 +100,8 @@ http://wiki.etersoft.ru/Epm
Please e-mail if you have any questions:
`lav@etersoft.ru`
## Simular projects
* https://github.com/leamas/lpf
* https://ihucos.github.io/zpkg/ - With zpkg you can install programs from other distributions into your system
......@@ -32,6 +32,7 @@ pkg_names=$(__epm_get_hilevel_name $pkg_names)
case $PMTYPE in
apt-*)
# FIXME: returns TRUE ever on missed package
docmd apt-cache policy $pkg_names
;;
packagekit)
......
......@@ -297,6 +297,8 @@ epm_remove()
return
fi
# TODO: add support for --no-scripts to all cases
if [ "$BASEDISTRNAME" = "alt" ] ; then
load_helper epm-sh-altlinux
if tasknumber "$pkg_names" >/dev/null ; then
......
......@@ -27,6 +27,7 @@ __epm_have_repack_rule()
# skip repacking on non ALT systems
[ "$BASEDISTRNAME" = "alt" ] || return 1
# skip for packages built with repack
local packager="$(epm print field Packager for "$1" 2>/dev/null)"
[ "$packager" = "EPM <support@etersoft.ru>" ] && return 1
[ "$packager" = "EPM <support@eepm.ru>" ] && return 1
......
......@@ -516,7 +516,6 @@ assure_exists_erc()
# will replaced within disabled_eget in packaged version
eget()
{
local EGET
# use internal eget only if exists
if [ -s $SHAREDIR/tools_eget ] ; then
( EGET_BACKEND=$eget_backend $CMDSHELL $SHAREDIR/tools_eget "$@" )
......@@ -524,6 +523,7 @@ eget()
fi
fatal "Internal error: missed tools_eget"
local EGET
# FIXME: we need disable output here, eget can be used for get output
assure_exists eget eget 3.3 >/dev/null
# run external command, not the function
......
......@@ -149,7 +149,7 @@ epm_status_repacked()
[ "$packager" = "EPM <support@eepm.ru>" ] && return 0
;;
*)
fatal "Unsupported $DISTRNAME"
fatal "Unsupported $BASEDISTRNAME"
;;
esac
return 1
......@@ -175,7 +175,7 @@ epm_status_thirdparty()
echo "$distribution" | grep -q "^ALT" || return 0
;;
*)
fatal "Unsupported $DISTRNAME"
fatal "Unsupported $BASEDISTRNAME"
;;
esac
return 1
......
......@@ -9,6 +9,12 @@ exit
[ "$(epm print info -s)" = "alt" ] || fatal "Only ALTLinux is supported"
if grep NVIDIA /proc/driver/nvidia/version 2>/dev/null ; then
echo "Already installed."
exit
fi
# ROSA: kroko-cli autoinstall
# https://www.altlinux.org/Nvidia#Смена_открытых_драйверов_на_проприетарные[1]
epm update || exit
......
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