diff options
Diffstat (limited to 'checkpkg.in')
-rw-r--r-- | checkpkg.in | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/checkpkg.in b/checkpkg.in index ec58ff6..c805729 100644 --- a/checkpkg.in +++ b/checkpkg.in @@ -39,11 +39,8 @@ for _pkgname in "${pkgname[@]}"; do ln -s "$pkgfile" "$TEMPDIR" - pkgurl=$(pacman -Spdd --print-format '%l' --noconfirm "$_pkgname") - - if [[ $? -ne 0 ]]; then + pkgurl=$(pacman -Spdd --print-format '%l' --noconfirm "$_pkgname") || die "Couldn't download previous package for %s." "$_pkgname" - fi oldpkg=${pkgurl##*://*/} |