summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-12-16 19:53:43 -0500
committerLevente Polyak <anthraxx@archlinux.org>2020-02-27 14:50:14 +0100
commitb2cbb8628eba3f64207c6d60f8b57ce023599000 (patch)
tree39872a489c4e336529d17a1323a66f1e487ba9e4
parent6d273f79c3ece8d84b52b0f32c36ad2159595892 (diff)
downloaddevtools-b2cbb8628eba3f64207c6d60f8b57ce023599000.tar.xz
checkpkg: fix support for http:// url comparisons
Broken in commit c14338c0fe71a74f5e56b4f3af7c548fe0928e15. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
-rw-r--r--checkpkg.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/checkpkg.in b/checkpkg.in
index 374c004..d7c0948 100644
--- a/checkpkg.in
+++ b/checkpkg.in
@@ -95,8 +95,10 @@ for _pkgname in "${pkgname[@]}"; do
if (( $# )); then
case $1 in
+ *://*)
+ pkgurl=$1 ;;
/*|*/*)
- pkgurl=file://$(readlink -m "$1") ;;
+ pkgurl=$(readlink -m "$1") ;;
*.pkg.tar*)
pkgurl=$1 ;;
'')