[Spacewalk-list] Spacewalk and SLES 12 Repositories

James Miller jamesmillerjr at gmail.com
Tue Mar 7 13:31:48 UTC 2017


Hello,

These are the changes I made on Centos 7 to sync SLES Repositories using
the instructions you posted.

/usr/lib/python2.7/site-packages/urlgrabber/mirror.py
+import urlparse

     def _join_url(self, base_url, rel_url):
-        if base_url.endswith('/') or rel_url.startswith('/'):
-            return base_url + rel_url
+        (scheme, netloc, path, query, fragid) = urlparse.urlsplit(base_url)
+        if path.endswith('/') or rel_url.startswith('/'):
+            return urlparse.urlunsplit((scheme, netloc, path + rel_url,
query,fragid))
         else:
-            return base_url + '/' + rel_url
-
+            return urlparse.urlunsplit((scheme, netloc, path + '/' +
rel_url,query, fragid))

Thanks,
James

On Tue, Mar 7, 2017 at 4:35 AM, <rosario.mattera at accenture.com> wrote:

> Hi,
>
> could you please suggest how to apply the patch for the python-url-grabber
> suggested in the thread and reported below?
>
>
>
> http://lists.opensuse.org/opensuse-commit/2014-09/msg01140.html
>
>
>
> Best regards,
>
> Rosario
>
> ------------------------------
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise confidential information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the e-mail by you is prohibited. Where allowed
> by local law, electronic communications with Accenture and its affiliates,
> including e-mail and instant messaging (including content), may be scanned
> by our systems for the purposes of information security and assessment of
> internal compliance with Accenture policy.
> ____________________________________________________________
> __________________________
>
> www.accenture.com
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170307/1e0d426e/attachment.htm>


More information about the Spacewalk-list mailing list