Commit 1d934d87 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm update: add fake packages file

parent 4efa0c62
......@@ -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()
{
......
......@@ -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
......
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