Commit 71786f1d authored by Vitaly Lipatov's avatar Vitaly Lipatov

small fixes

parent d76f8f68
...@@ -269,7 +269,7 @@ check_command() ...@@ -269,7 +269,7 @@ check_command()
full-upgrade) # HELPCMD: update all system packages and kernel full-upgrade) # HELPCMD: update all system packages and kernel
epm_cmd=full_upgrade epm_cmd=full_upgrade
;; ;;
release-upgrade|upgrade-release|upgrade-system|release-switch) # HELPCMD: upgrade/switch whole system to the release in arg (default: next (latest) release) release-upgrade|upgrade-release|upgrade-system|release-switch|release-downgrade) # HELPCMD: upgrade/switch whole system to the release in arg (default: next (latest) release)
epm_cmd=release_upgrade epm_cmd=release_upgrade
;; ;;
kernel-update|kernel-upgrade|update-kernel|upgrade-kernel) # HELPCMD: update system kernel to the last repo version kernel-update|kernel-upgrade|update-kernel|upgrade-kernel) # HELPCMD: update system kernel to the last repo version
...@@ -407,7 +407,7 @@ check_option() ...@@ -407,7 +407,7 @@ check_option()
sort="$1" sort="$1"
;; ;;
--auto|--non-interactive) # HELPOPT: non interactive mode --auto|--non-interactive) # HELPOPT: non interactive mode
non_interactive=1 non_interactive="--auto"
;; ;;
*) *)
return 1 return 1
......
...@@ -111,6 +111,6 @@ if [ "$1" == "--list-all" ] || [ -z "$*" ] ; then ...@@ -111,6 +111,6 @@ if [ "$1" == "--list-all" ] || [ -z "$*" ] ; then
exit exit
fi fi
__check_installed_app "$1" && info "$1 is already installed" && exit 1 __check_installed_app "$1" && info "$1 is already installed (use --remove to remove)" && exit 1
__epm_play_run "$1" --run && __save_installed_app "$1" __epm_play_run "$1" --run && __save_installed_app "$1"
} }
...@@ -164,6 +164,7 @@ EOF ...@@ -164,6 +164,7 @@ EOF
# will fill repacked_rpms var # will fill repacked_rpms var
__epm_repack_to_rpm() __epm_repack_to_rpm()
{ {
local pkgs="$*"
assure_distr ALTLinux "install --repack" assure_distr ALTLinux "install --repack"
# install epm-repack for static (package based) dependencies # install epm-repack for static (package based) dependencies
...@@ -172,7 +173,7 @@ __epm_repack_to_rpm() ...@@ -172,7 +173,7 @@ __epm_repack_to_rpm()
assure_exists rpmbuild rpm-build || fatal assure_exists rpmbuild rpm-build || fatal
# TODO: improve # TODO: improve
if echo "$*" | grep "\.deb" ; then if echo "$pkgs" | grep "\.deb" ; then
assure_exists dpkg || fatal assure_exists dpkg || fatal
# TODO: Для установки требует: /usr/share/debconf/confmodule но пакет не может быть установлен # TODO: Для установки требует: /usr/share/debconf/confmodule но пакет не может быть установлен
# assure_exists debconf # assure_exists debconf
...@@ -184,9 +185,10 @@ __epm_repack_to_rpm() ...@@ -184,9 +185,10 @@ __epm_repack_to_rpm()
local alpkg local alpkg
local abspkg local abspkg
local tmpbuilddir
repacked_rpms='' repacked_rpms=''
for pkg in $* ; do for pkg in $pkgs ; do
local tmpbuilddir=$HOME/$(basename $pkg).tmpdir tmpbuilddir=$HOME/$(basename $pkg).tmpdir
mkdir $tmpbuilddir mkdir $tmpbuilddir
abspkg="$(realpath $pkg)" abspkg="$(realpath $pkg)"
info "" info ""
......
#!/bin/sh #!/bin/sh -x
# TODO: common place # TODO: common place
fatal() fatal()
......
...@@ -15,7 +15,7 @@ else ...@@ -15,7 +15,7 @@ else
# Install all packages # Install all packages
epmi ${GFSNEW}-cli ${GFSNEW}-client ${GFSNEW} epmi ${GFSNEW}-cli ${GFSNEW}-client ${GFSNEW}
echo "You can install also '${GFSNEW}-server' if needed for this host" echo "You can install also '${GFSNEW}-server' if it is needed for this host"
epme $(epmqp ${GFSOLD}) epme $(epmqp ${GFSOLD})
fi fi
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