[arch-projects] [devtools] [PATCH 1/2] checkpkg: fix support for http:// url comparisons

Eli Schwartz eschwartz at archlinux.org
Thu Jan 2 17:31:12 UTC 2020


Broken in commit c14338c0fe71a74f5e56b4f3af7c548fe0928e15.

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

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


More information about the arch-projects mailing list