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

epm: fix warmup issue

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