From 23a508412936b1408e9ce9399e675fc1397c28eb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 5 Nov 2011 18:10:08 +0100 Subject: db-repo-add: At least check if the package to be added is available in the correct directory --- db-repo-add | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db-repo-add b/db-repo-add index 9661b91..b83fb77 100755 --- a/db-repo-add +++ b/db-repo-add @@ -30,8 +30,8 @@ done for tarch in ${tarches[@]}; do for pkgfile in ${pkgfiles[@]}; do - if [[ ! -f $pkgfile ]]; then - die "Package file $pkgfile not found" + if [[ ! -f "${FTP_BASE}/${repo}/os/${arch}/${pkgfile##*/}" ]]; then + die "Package file ${pkgfile##*/} not found in ${FTP_BASE}/${repo}/os/${arch}/" else msg "Adding $pkgfile to [$repo]..." fi -- cgit v1.2.3-24-g4f1b