diff --git a/bin/epm-check_updated_repo b/bin/epm-check_updated_repo index 895f2635ac21ea385317e36c1e4e8e5a510a7bb1..24dd28494bb119dcec11f0adfa986d13d93149ed 100644 --- a/bin/epm-check_updated_repo +++ b/bin/epm-check_updated_repo @@ -50,6 +50,25 @@ __epm_check_apt_db_days() fi return 1 } + +__epm_touch_apt_pkg() +{ + # apt-dpkg + local pkg="Packages" + [ "$BASEDISTRNAME" = "alt" ] && pkg="pkglist" + # ordinal package file have date of latest upstream change, not latest update, so update fake file + sudorun touch "/var/lib/apt/lists/eepm-fake_$pkg" +} + +__epm_touch_pkg() +{ + case $PMTYPE in + apt-*) + __epm_touch_apt_pkg + ;; + esac +} + # check if we need initial update __is_repo_info_downloaded() { diff --git a/bin/epm-update b/bin/epm-update index 483f883affec88c7552abb309bc0eff29ff1bc6c..fdd8d880024b46194f41b891f3e96fa0a8c316a2 100644 --- a/bin/epm-update +++ b/bin/epm-update @@ -20,6 +20,7 @@ # copied from korinf/tools/run-script/scripts/update load_helper epm-sh-warmup +load_helper epm-check_updated_repo # TODO: restore mirroring get_latest_version() @@ -148,6 +149,8 @@ case $PMTYPE in ;; esac +__epm_touch_pkg + __save_available_packages return 0