summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-24 13:10:58 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-24 13:10:58 +0200
commit476cce1c57a62821a2da8f5481e21e3e9c0d68fd (patch)
tree3a0023d2a8e9577ea935e135bbb7fb4a6fe221c1
parente9948d8392d5ab986541c0d7120f1e5c510261ad (diff)
downloaddbscripts-476cce1c57a62821a2da8f5481e21e3e9c0d68fd.tar.gz
dbscripts-476cce1c57a62821a2da8f5481e21e3e9c0d68fd.tar.xz
db-update: Make sure there are no links in the staging directory
-rwxr-xr-xdb-update3
1 files changed, 3 insertions, 0 deletions
diff --git a/db-update b/db-update
index 68450b4..13c7441 100755
--- a/db-update
+++ b/db-update
@@ -29,6 +29,9 @@ for repo in ${repos[@]}; do
pkgs=($(getpkgfiles "${STAGING}/${repo}/"*${PKGEXT}))
if [ $? -eq 0 ]; then
for pkg in ${pkgs[@]}; do
+ if [ -h "${pkg}" ]; then
+ die "Package ${repo}/$(basename ${pkg}) is a symbolic link"
+ fi
if ! check_pkgfile "${pkg}"; then
die "Package ${repo}/$(basename ${pkg}) is not consistent with its meta data"
fi