diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-05-06 17:53:27 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2018-05-07 14:17:11 -0400 |
commit | fef7b4f6e946d50fcc37a5b8a795ba1ee6a2cfc6 (patch) | |
tree | 6aa2ef8f1d7f41c14b871b9c514d0ca99a437798 | |
parent | 4e73ca4213670c500859c9d255225b142dc9eda7 (diff) |
db-import-pkg: Make it an error if we can't find a package fileparabola/20180507
-rwxr-xr-x | db-import-pkg | 5 |
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" |