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

remove epm_update case in places where we run it

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