@@ -25,16 +25,20 @@ execute_install_scripts="${3}"
2525
2626cache_filepaths=" $( ls -1 " ${cache_dir} " | sort) "
2727log " Found $( echo ${cache_filepaths} | wc -w) files in the cache."
28- for cache_filepath in ${cache_filepaths} ; do
29- log " - " $( basename ${cache_filepath} ) " "
30- done
28+ if test " ${debug} " == " true" ; then
29+ for cache_filepath in ${cache_filepaths} ; do
30+ log " - $( basename ${cache_filepath} ) "
31+ done
32+ fi
3133
3234log_empty_line
3335
3436log " Reading from main requested packages manifest..."
35- for logline in $( cat " ${cache_dir} /manifest_main.log" | tr ' ,' ' \n' ) ; do
36- log " - $( echo " ${logline} " | tr ' :' ' ' ) "
37- done
37+ if test " ${debug} " == " true" ; then
38+ for logline in $( cat " ${cache_dir} /manifest_main.log" | tr ' ,' ' \n' ) ; do
39+ log " - $( echo " ${logline} " | tr ' :' ' ' ) "
40+ done
41+ fi
3842log " done"
3943
4044log_empty_line
@@ -53,7 +57,7 @@ restore_dpkg_status() {
5357
5458for package in " ${packages[@]} " ; do
5559 cached_filepath=" ${cache_dir} /${package} .tar"
56- log " - ${package} restoring..."
60+ log_debug " - ${package} restoring..."
5761 sudo tar -xf " ${cached_filepath} " -C " ${cache_restore_root} " > /dev/null
5862
5963 package_name=" ${package%% =* } "
@@ -62,7 +66,7 @@ for package in "${packages[@]}"; do
6266 else
6367 log " Status file ${cache_restore_root} /var/tmp/dpkg-restore/${package_name} .status not found"
6468 fi
65- log " done"
69+ log_debug " done"
6670
6771 # Execute install scripts if available.
6872 if test ${execute_install_scripts} == " true" ; then
0 commit comments