diff options
author | Didier Raboud <odyx@debian.org> | 2012-02-19 16:31:56 +0100 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2012-03-05 22:41:34 +0100 |
commit | 0b0dcd7c5755173e578f120c2ec7ed0552c119bd (patch) | |
tree | 81f671637938d0f12a0d7327fdbeacb9126a32c0 /lsb_release.py | |
parent | 266fc308fe1b43cf69111fd68e05c83dcab2400c (diff) |
Upgrade to support LSB 4.1.
LSB changes:
- Bump Depends:
- on libglib2.0-0 to >= 2.12.13;
- on fontconfig to >= 2.6.0;
- on libglib2.0-0 to >= 2.12.13;
- on libatk1.0-0 to >= 1.10.3;
- on libpango1.0-0 to >= 1.10.4;
- on libgtk2.0-0 to >= 2.10.14;
- Add Depends:
- on libglu1;
- on libcairo2 to >= 1.2.0;
- on libxtst6;
- on ghostscript-cups;
- In lsb, bump lsb-printing from Suggests to Depends.
- Add the lsb-security package.
- Drop the now-obsolete lsb-qt4 package.
Debian changes:
- libgl1-mesa-glx is the first alternative for libgl1;
- Make sure all packages have ${misc:Depends}.
Closes: #586191
LP: #385606
LP: #386128
Signed-off-by: Didier Raboud <odyx@debian.org>
Diffstat (limited to 'lsb_release.py')
-rw-r--r-- | lsb_release.py | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/lsb_release.py b/lsb_release.py index a274cf7..142f902 100644 --- a/lsb_release.py +++ b/lsb_release.py @@ -56,7 +56,7 @@ def lookup_codename(release, unknown=None): return RELEASE_CODENAME_LOOKUP.get(shortrelease, unknown) # LSB compliance packages... may grow eventually -PACKAGES = 'lsb-core lsb-cxx lsb-graphics lsb-desktop lsb-qt4 lsb-languages lsb-multimedia lsb-printing' +PACKAGES = 'lsb-core lsb-cxx lsb-graphics lsb-desktop lsb-languages lsb-multimedia lsb-printing lsb-security' modnamere = re.compile(r'lsb-(?P<module>[a-z0-9]+)-(?P<arch>[^ ]+)(?: \(= (?P<version>[0-9.]+)\))?') @@ -81,6 +81,33 @@ def valid_lsb_versions(version, module): return ['3.0', '3.1', '3.2'] else: return ['2.0', '3.0', '3.1', '3.2'] + elif version == '4.0': + if module == 'desktop': + return ['3.1', '3.2', '4.0'] + elif module == 'qt4': + return ['3.1'] + elif module in ('printing', 'languages', 'multimedia'): + return ['3.2', '4.0'] + elif module == 'security': + return ['4.0'] + elif module == 'cxx': + return ['3.0', '3.1', '3.2', '4.0'] + else: + return ['2.0', '3.0', '3.1', '3.2', '4.0'] + elif version == '4.1': + if module == 'desktop': + return ['3.1', '3.2', '4.0', '4.1'] + elif module == 'qt4': + return ['3.1'] + elif module in ('printing', 'languages', 'multimedia'): + return ['3.2', '4.0', '4.1'] + elif module == 'security': + return ['4.0', '4.1'] + elif module == 'cxx': + return ['3.0', '3.1', '3.2', '4.0', '4.1'] + else: + return ['2.0', '3.0', '3.1', '3.2', '4.0', '4.1'] + return [version] |