[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#827137: lsb-release requires update since debian-ports archive moved



Package: lsb-release
Version: 9.20160601
Tags: patch

The debian-ports archive moved from http://debian-ports.org to a
new server at https://www.ports.debian.org/

Since then, the "lsb-release -sc" command does not any longer
reports CODENAME=sid, but instead CODENAME=n/a, which in turn
breaks building the python-escript package on the ports architectures:
https://buildd.debian.org/status/package.php?p=python-escript&suite=sid

Attached patch fixes it, by simply replacing the URL with the new one.
Maybe it should be enhanced to detect the old and the new URL too ?

Please apply.

Thanks,
Helge 
diff -up ./lsb_release.py.org ./lsb_release.py
--- ./lsb_release.py.org	2016-06-12 21:34:49.190890058 +0200
+++ ./lsb_release.py	2016-06-12 21:39:24.597122839 +0200
@@ -184,7 +184,7 @@ def parse_apt_policy():
 def guess_release_from_apt(origin='Debian', component='main',
                            ignoresuites=('experimental'),
                            label='Debian',
-                           alternate_olabels={'Debian Ports':'ftp.debian-ports.org'}):
+                           alternate_olabels={'Debian Ports':'ftp.ports.debian.org'}):
     releases = parse_apt_policy()
 
     if not releases:
@@ -285,7 +285,7 @@ def guess_debian_release():
         release = rinfo.get('version')
 
         # Special case Debian-Ports as their Release file has 'version': '1.0'
-        if release == '1.0' and rinfo.get('origin') == 'Debian Ports' and rinfo.get('label') == 'ftp.debian-ports.org':
+        if release == '1.0' and rinfo.get('origin') == 'Debian Ports' and rinfo.get('label') == 'ftp.ports.debian.org':
             release = None
             rinfo.update({'suite': 'unstable'})
 

Reply to: