[devtools,1/2] checkpkg: fix support for http:// url comparisons

Message ID 20200102173113.409799-1-eschwartz@archlinux.org
State Accepted
Headers show
Series [devtools,1/2] checkpkg: fix support for http:// url comparisons | expand

Commit Message

Emil Velikov via arch-projects Jan. 2, 2020, 5:31 p.m. UTC
Broken in commit c14338c0fe71a74f5e56b4f3af7c548fe0928e15.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
---
 checkpkg.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

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 ;;
 			'')