From 41727847a37f2eb11d835015327b29fd2e689bc5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Jun 2017 09:24:15 +0200 Subject: bin/db-update: add lastupdate file --- bin/db-update | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin') diff --git a/bin/db-update b/bin/db-update index 58e9eaf..6831c22 100755 --- a/bin/db-update +++ b/bin/db-update @@ -61,6 +61,8 @@ done packages_to_stabilize=("${@}") +updated_package_database=false + # Create a lock file and a trap. exec 9> "${build_list_lock_file}" @@ -226,6 +228,7 @@ for package in ${done_packages}; do repo-remove 'staging.db.tar.gz' "${parts_names[@]}" for part in "${parts[@]}"; do mv "${part}"{,.sig} "../${destination}/" + updated_package_database=true done popd > /dev/null pushd "${master_mirror_directory}/i686/${destination}" > /dev/null @@ -237,3 +240,8 @@ done # TODO: # move packages from packages_to_stabilize from *testing/ to the stable repos + +if ${updated_package_database}; then + date '+%s' > \ + "${master_mirror_directory}/lastupdate" +fi -- cgit v1.2.3-54-g00ecf