Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 51c51,79
- < get_distro_info()
- ---
- > try:
- > get_distro_info()
- > except:
- > # NOTE: Nasty hack by David
- > # Don't break older system's freeze!
- > # Leave them fail and provide backwards compatibility as an exception
- > RELEASE_CODENAME_LOOKUP = {
- > '1.1' : 'buzz',
- > '1.2' : 'rex',
- > '1.3' : 'bo',
- > '2.0' : 'hamm',
- > '2.1' : 'slink',
- > '2.2' : 'potato',
- > '3.0' : 'woody',
- > '3.1' : 'sarge',
- > '4.0' : 'etch',
- > '5.0' : 'lenny',
- > '6.0' : 'squeeze',
- > '7.0' : 'wheezy',
- > '8.0' : 'jessie',
- > }
- >
- > TESTING_CODENAME = 'unknown.new.testing'
- >
- > RELEASES_ORDER = list(RELEASE_CODENAME_LOOKUP.items())
- > RELEASES_ORDER.sort()
- > RELEASES_ORDER = list(list(zip(*RELEASES_ORDER))[1])
- > RELEASES_ORDER.extend(['stable', 'testing', 'unstable', 'sid'])
- >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement