From 476cce1c57a62821a2da8f5481e21e3e9c0d68fd Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Tue, 24 Aug 2010 13:10:58 +0200 Subject: db-update: Make sure there are no links in the staging directory --- db-update | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-24-g4f1b