summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-05-06 17:53:27 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-05-07 14:17:11 -0400
commitfef7b4f6e946d50fcc37a5b8a795ba1ee6a2cfc6 (patch)
tree6aa2ef8f1d7f41c14b871b9c514d0ca99a437798
parent4e73ca4213670c500859c9d255225b142dc9eda7 (diff)
db-import-pkg: Make it an error if we can't find a package fileparabola/20180507
-rwxr-xr-xdb-import-pkg5
1 files changed, 2 insertions, 3 deletions
diff --git a/db-import-pkg b/db-import-pkg
index 8d42bf2..377daaf 100755
--- a/db-import-pkg
+++ b/db-import-pkg
@@ -146,9 +146,8 @@ make_repo_symlinks() {
fi
# give up
if [[ ! (-f "$path" && -f "${path}.sig") ]]; then
- warning "No file was found for %s, skipping" \
- "${pkgfile%-*}"
- continue
+ error "No file was found for %s, skipping" "$pkgfile"
+ return 1
fi
local symlink="${repodir}/${path##*/}"
ln -sfv "../../../pool/${path##*/pool/}" "$symlink"