Commit 3d1ac884 authored by Vitaly Lipatov's avatar Vitaly Lipatov

remove epm_update case in places where we run it

parent b0293196
#!/bin/sh #!/bin/sh
# #
# Copyright (C) 2013 Etersoft # Copyright (C) 2013, 2019 Etersoft
# Copyright (C) 2013 Vitaly Lipatov <lav@etersoft.ru> # Copyright (C) 2013, 2019 Vitaly Lipatov <lav@etersoft.ru>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by # it under the terms of the GNU Affero General Public License as published by
...@@ -28,16 +28,9 @@ epm_Install() ...@@ -28,16 +28,9 @@ epm_Install()
[ -z "$files$names" ] && info "Install: Skip empty install list." && return 22 [ -z "$files$names" ] && info "Install: Skip empty install list." && return 22
# do update only if really need install something (pkg_filenames='' epm_update) || return
case $PMTYPE in
yum-rpm)
;;
*)
(pkg_filenames='' epm_update) || return
;;
esac
epm_install_names $names || return epm_install_names $names || return
epm_install_files $files
epm_install_files $files
} }
#!/bin/sh #!/bin/sh
# #
# Copyright (C) 2013 Etersoft # Copyright (C) 2013, 2019 Etersoft
# Copyright (C) 2013 Vitaly Lipatov <lav@etersoft.ru> # Copyright (C) 2013, 2019 Vitaly Lipatov <lav@etersoft.ru>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by # it under the terms of the GNU Affero General Public License as published by
...@@ -22,13 +22,7 @@ load_helper epm-upgrade ...@@ -22,13 +22,7 @@ load_helper epm-upgrade
epm_Upgrade() epm_Upgrade()
{ {
case $PMTYPE in (pkg_filenames='' epm_update)
yum-rpm|dnf-rpm)
;;
*)
(pkg_filenames='' epm_update) || return
;;
esac
epm_upgrade epm_upgrade
} }
...@@ -23,13 +23,7 @@ load_helper epm-kernel_update ...@@ -23,13 +23,7 @@ load_helper epm-kernel_update
epm_full_upgrade() epm_full_upgrade()
{ {
case $PMTYPE in (pkg_filenames='' epm_update) || return
yum-rpm|dnf-rpm)
;;
*)
(pkg_filenames='' epm_update) || return
;;
esac
epm_upgrade || return epm_upgrade || return
......
...@@ -48,14 +48,12 @@ case $PMTYPE in ...@@ -48,14 +48,12 @@ case $PMTYPE in
sudocmd aptitude update || return sudocmd aptitude update || return
;; ;;
yum-rpm) yum-rpm)
info "update command is stubbed for yum" # just skipped
# yum makecache [ -n "$verbose" ] && info "update command is stubbed for yum"
#sudocmd yum check-update
;; ;;
dnf-rpm) dnf-rpm)
info "update command is stubbed for dnf" # just skipped
# dnf makecache [ -n "$verbose" ] && info "update command is stubbed for dnf"
#sudocmd dnf check-update
;; ;;
urpm-rpm) urpm-rpm)
sudocmd urpmi.update -a sudocmd urpmi.update -a
......
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