summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-14 09:24:15 +0200
committerErich Eckner <git@eckner.net>2017-06-14 09:24:15 +0200
commit41727847a37f2eb11d835015327b29fd2e689bc5 (patch)
treec3fe26c5c0dd64ac3406e4e7bd6a99fef0607013 /bin
parenta64b0be23127cc06ad2aa41c608b8f4ea15deb97 (diff)
downloadbuilder-41727847a37f2eb11d835015327b29fd2e689bc5.tar.xz
bin/db-update: add lastupdate file
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-update8
1 files changed, 8 insertions, 0 deletions
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