Commit 80fd15cc authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: fix warmup issue

parent a17dab31
......@@ -122,6 +122,7 @@ skip_installed=
skip_missed=
show_command_only=
epm_cmd=
warmup=
pkg_files=
pkg_dirs=
pkg_names=
......
......@@ -20,8 +20,8 @@
is_warmup_allowed()
{
local MEM
# disable warming up until set EPM_WARNUP in /etc/eepm/eepm.conf
[ -n "$EPM_WARMUP" ] || return 1
# disable warming up until set warmup in /etc/eepm/eepm.conf
[ -n "$warmup" ] || return 1
MEM="$($DISTRVENDOR -m)"
# disable warm if have no enough memory
[ "$MEM" -le 1024 ] && return 1
......@@ -40,7 +40,7 @@ __warmup_files()
warmup_rpmbase()
{
is_warmup_allowed || return
is_warmup_allowed || { warning "Skipping warmup bases due low memory size" ; return ; }
__warmup_files "rpm" "/var/lib/rpm/*"
}
......
......@@ -21,6 +21,8 @@
#skip_missed=1
#show_command_only=1
#epm_cmd=
# warmup repository data before using (actually only for HDD)
#warmup=1
# Uncomment if you need skip some operations during full-upgrade
#full_upgrade_no_epm_play=1
......
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