diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-11-05 18:10:08 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-11-05 18:10:08 +0100 |
commit | 23a508412936b1408e9ce9399e675fc1397c28eb (patch) | |
tree | 3d1688dea35cfa13b869d884748a3888d29e0f17 /db-repo-add | |
parent | 0c8c401b9638087e3f7127f83a2cb0b5cfdd3269 (diff) | |
download | dbscripts-23a508412936b1408e9ce9399e675fc1397c28eb.tar.gz dbscripts-23a508412936b1408e9ce9399e675fc1397c28eb.tar.xz |
db-repo-add: At least check if the package to be added is available in the correct directory
Diffstat (limited to 'db-repo-add')
-rwxr-xr-x | db-repo-add | 4 |
1 files 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 |