summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2014-10-04 21:21:49 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2014-10-04 21:21:49 +0200
commit2c72fef7bd097105e57e05a4a49d0eda060735ba (patch)
tree4f19b996beedd317a46646f8cdb158ed128f0931
parent724674000a5c4ac1ce87db0b5f86b51d1d070a41 (diff)
Update lastsync after db-sync or cleanup.
-rw-r--r--db-functions1
-rwxr-xr-xdb-sync2
2 files changed, 3 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index 2eeffbb..dd8e2dc 100644
--- a/db-functions
+++ b/db-functions
@@ -141,6 +141,7 @@ cleanup() {
if (( REPO_MODIFIED )); then
date +%s > "${FTP_BASE}/lastupdate"
+ date -u +%s > "${FTP_BASE}/lastsync"
fi
[ "$1" ] && exit "$1"
diff --git a/db-sync b/db-sync
index 58e211d..35b6489 100755
--- a/db-sync
+++ b/db-sync
@@ -174,6 +174,8 @@ init() {
"${FTP_BASE}/${srcpool}/"
done
+ date -u +%s > "${FTP_BASE}/lastsync"
+
# Cleanup
unset blacklist whitelists _arch _repo repo_file
}