summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}