summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdb-update8
1 files changed, 8 insertions, 0 deletions
diff --git a/db-update b/db-update
index 254a6f9..77af39f 100755
--- a/db-update
+++ b/db-update
@@ -104,6 +104,14 @@ if [ -d "$stagedir" ]; then
fi
if [ -n "$ADDPKGS" ]; then
+
+ echo "==> Copying DB file from '$reponame'..." >&2
+ if [ -f "$ftppath/$reponame.db.tar.$DB_COMPRESSION" ]; then
+ /bin/cp "$ftppath/$reponame.db.tar.$DB_COMPRESSION" build/
+ else
+ touch "build/$reponame.db.tar.$DB_COMPRESSION"
+ fi
+
echo "==> Processing new/updated packages for repository '$reponame'..." >&2
cd "$WORKDIR"