summaryrefslogtreecommitdiffstats
path: root/db-repo-add
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-11-05 18:10:08 +0100
committerPierre Schmitz <pierre@archlinux.de>2011-11-05 18:10:08 +0100
commit23a508412936b1408e9ce9399e675fc1397c28eb (patch)
tree3d1688dea35cfa13b869d884748a3888d29e0f17 /db-repo-add
parent0c8c401b9638087e3f7127f83a2cb0b5cfdd3269 (diff)
downloaddbscripts-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-xdb-repo-add4
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