summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-26 16:06:53 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-06-26 16:06:53 -0300
commit7592118ed1c8952d05f1239e3b84d85d39ea2982 (patch)
treea64458d6cf63491098ae73d08235c8c5b6402525 /db-update
parent4d3cf060c4a7d2b671d9cdf0ab0f6c1d89a8204b (diff)
Re-enabled check on other repos; skip already released packages
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-update b/db-update
index 86eaa2e..1fe5256 100755
--- a/db-update
+++ b/db-update
@@ -35,9 +35,9 @@ for repo in ${repos[@]}; do
if ! check_pkgfile "${pkg}"; then
die "Package ${repo}/$(basename ${pkg}) is not consistent with its meta data"
fi
- #if ! check_pkgrepos "${pkg}"; then
- # die "Package ${repo}/$(basename ${pkg}) already exists in another repository"
- #fi
+ if ! check_pkgrepos "${pkg}"; then
+ die "Package ${repo}/$(basename ${pkg}) already exists in another repository"
+ fi
done
# This is fucking obnoxious
# if ! check_splitpkgs ${repo} ${pkgs[@]}; then
@@ -61,7 +61,7 @@ for repo in ${repos[@]}; do
if [ -f "${pkg}" ]; then
mv "${pkg}" "$FTP_BASE/${PKGPOOL}"
fi
- ln -s "../../../${PKGPOOL}/${pkgfile}" "$FTP_BASE/$repo/os/${pkgarch}"
+ ln -s "../../../${PKGPOOL}/${pkgfile}" "$FTP_BASE/$repo/os/${pkgarch}" 2>/dev/null || { error "Package already in repo, skipping" ; continue }
# also move signatures
if [ -f "${pkg}.sig" ]; then
mv "${pkg}.sig" "$FTP_BASE/${PKGPOOL}"