summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2014-01-06 04:30:22 +0000
committerParabola <dev@list.parabolagnulinux.org>2014-01-06 04:30:22 +0000
commit91f6039acb4ba915a3ca3fc366a7159656ec0dc1 (patch)
tree552d187bbdf507533d224bec8e1cc9cf78cf03cb /db-update
parent65a57db930ced507fd057e8196ba5ef6ee21bb62 (diff)
fix things
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update21
1 files changed, 15 insertions, 6 deletions
diff --git a/db-update b/db-update
index 2fa23af..2d4f28a 100755
--- a/db-update
+++ b/db-update
@@ -9,7 +9,7 @@ if [ $# -ge 1 ]; then
fi
# Find repos with packages to release
-repos=($(find "${STAGING}" -mindepth 1 -maxdepth 1 -type d ! -empty -printf '%f ' 2>/dev/null))
+repos=($(find "${STAGING}" -mindepth 1 -maxdepth 1 -type d ! -empty ! -name other -printf '%f ' 2>/dev/null))
if [ $? -ge 1 ]; then
die "Could not read ${STAGING}"
fi
@@ -39,10 +39,10 @@ for repo in ${repos[@]}; do
die "Package ${repo}/$(basename ${pkg}) already exists in another repository"
fi
done
- # This is fucking obnoxious
-# if ! check_splitpkgs ${repo} ${pkgs[@]}; then
-# die "Missing split packages for ${repo}"
-# fi
+ # This is fucking obnoxious
+ #if ! check_splitpkgs ${repo} ${pkgs[@]}; then
+ # die "Missing split packages for ${repo}"
+ #fi
else
die "Could not read ${STAGING}"
fi
@@ -83,4 +83,13 @@ for repo in ${repos[@]}; do
done
done
-cp -rviT "${STAGING}/other/" "${FTP_BASE}/other/"
+cd "${STAGING}"
+while read -r file; do
+ pub="${FTP_BASE}/${file}"
+ if [[ -f $pub ]]; then
+ warning "file already exists: %s" "${file}"
+ else
+ mkdir -p -- "${pub%/*}"
+ mv -vn "$file" "$pub"
+ fi
+done < <(find other -type f)