Package: rinse
Version: 3.2

Downloading the RPMs via HTTPS fails because rinse replaces all double
slashes with single slashes, resulting in broken URLs.

The attached patch fixes this by by extending the HTTP special case to
cover HTTPS as well.

Regards,
Ulrich
From 5e17b87bb5a5380f3f0bb9873efa31c3185eb97f Mon Sep 17 00:00:00 2001
From: Ulrich Zehl <ulrich-deb...@topfen.net>
Date: Wed, 20 Sep 2017 11:36:42 +0200
Subject: [PATCH] Make RPM links work with HTTPS

Rinse did not correctly format https://... links for packages, because it
replaced all double slashes with a single slash.
Fix this by extending the HTTP special case to cover HTTPS as well.
---
 bin/rinse | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/rinse b/bin/rinse
index 51d0618..b7d37c5 100755
--- a/bin/rinse
+++ b/bin/rinse
@@ -1005,7 +1005,7 @@ sub findMirrorContentsInPage {
         # store
         $links{ $link } = "$mirror/$link";
         $links{ $link } =~ s#//#/#g; # remove duplicate slashes
-        $links{ $link } =~ s#^http:/#http://#; # except for http
+        $links{ $link } =~ s#^(https?):/#$1://#; # except for http and https
       }
     }
 
-- 
2.7.4

Reply via email to