summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update13
1 files changed, 6 insertions, 7 deletions
diff --git a/db-update b/db-update
index 8e7a0c7..05236fe 100755
--- a/db-update
+++ b/db-update
@@ -11,7 +11,6 @@ source_makepkg
reponame="$1"
current_arch=""
-DB_COMPRESSION='gz'
[ "$UID" = "" ] && UID=$(uid)
@@ -125,8 +124,8 @@ for current_arch in ${ARCHES[@]}; do
cd "$WORKDIR"
# copy the db file into our working area
- if [ -f "$ftppath/$reponame.db.tar.$DB_COMPRESSION" ]; then
- /bin/cp "$ftppath/$reponame.db.tar.$DB_COMPRESSION" build/
+ if [ -f "$ftppath/$reponame$DBEXT" ]; then
+ /bin/cp "$ftppath/$reponame$DBEXT" build/
fi
echo "Updating DB for $svnrepo"
@@ -139,8 +138,8 @@ for current_arch in ${ARCHES[@]}; do
if [ -n "$ADDPKGS" -o -n "$ANYPKGS" ]; 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/
+ if [ -f "$ftppath/$reponame$DBEXT" ]; then
+ /bin/cp "$ftppath/$reponame$DBEXT" build/
fi
pkgtotal=$(echo "$ADDPKGS $ANYPKGS" | wc -w)
@@ -183,9 +182,9 @@ for current_arch in ${ARCHES[@]}; do
pkgs=""
for pkg in $to_add $to_add_any; do pkgs="$pkgs $(basename $pkg)"; done
- /usr/bin/repo-add -q "$reponame.db.tar.$DB_COMPRESSION" $pkgs
+ /usr/bin/repo-add -q "$reponame$DBEXT" $pkgs
else
- rm -f "build/$reponame.db.tar.$DB_COMPRESSION"
+ rm -f "build/$reponame$DBEXT"
echo "Errors found when adding packages"
fi
else