Lines Matching full:release
85 # 0.1.0 - first release
244 _release_filename = re.compile(r'(\w+)[-_](release|version)')
246 ' release '
250 '(?: release )?'
255 # and http://linuxmafia.com/faq/Admin/release-files.html
275 # LSB format: "distro release x.x (codename)"
298 The function first looks for a distribution release file in
304 supported Linux distributions identified by their release file
353 The function first looks for a distribution release file in
482 def _syscmd_ver(system='', release='', version='',
487 a tuple (system,release,version).
497 return system,release,version
517 return system,release,version
523 system,release,version = m.groups()
524 # Strip trailing dots from version and release
525 if release[-1] == '.':
526 release = release[:-1]
532 return system,release,version
553 def win32_ver(release='',version='',csd='',ptype=''):
577 # The mappings between reg. values and release names can be found
593 return release,version,csd,ptype
622 # Try to guess the release name
625 release = '95'
627 release = '98'
629 release = 'Me'
631 release = 'postMe'
633 release = '2000'
638 release = 'NT'
641 release = '2000'
643 release = 'XP'
645 release = '2003Server'
647 release = 'post2003'
668 release = 'Vista'
670 release = '2008Server'
673 release = '7'
675 release = '2008ServerR2'
678 release = '8'
680 release = '2012Server'
682 release = 'post2012Server'
685 if not release:
687 release = '%i.%i' % (maj,min)
688 return release,version,csd,ptype
696 return release,version,csd,ptype
703 # release = release + subversion # 95a, 95b, etc.
716 return release,version,csd,ptype
764 release = '%i.%i.%i' %(major, minor, patch)
766 release = '%s.%i.%i' % (_bcd2str(major),minor,patch)
774 return release,versioninfo,machine
787 release = pl['ProductVersion']
794 return release,versioninfo,machine
797 def mac_ver(release='',versioninfo=('','',''),machine=''):
799 """ Get MacOS version information and return it as tuple (release,
820 return release,versioninfo,machine
833 def java_ver(release='',vendor='',vminfo=('','',''),osinfo=('','','')):
837 Returns a tuple (release,vendor,vminfo,osinfo) with vminfo being
849 return release,vendor,vminfo,osinfo
852 release = _java_getprop('java.version', release)
864 return release, vendor, vminfo, osinfo
868 def system_alias(system,release,version):
870 """ Returns (system,release,version) aliased to common
879 # XXX How can we determine the marketing release number ?
880 return 'MacOS X Server',system+release,version
884 if release < '5':
886 return system,release,version
887 # Modify release (marketing release = SunOS release - 3)
888 l = string.split(release,'.')
897 release = string.join(l,'.')
898 if release < '6':
918 return system,release,version
1169 of strings (system,node,release,version,machine,processor)
1188 system,node,release,version,machine = os.uname()
1192 if no_os_uname or not filter(None, (system, node, release, version, machine)):
1197 release = ''
1206 release,version,csd,ptype = win32_ver()
1207 if release and version:
1225 system,release,version = _syscmd_ver(system)
1230 elif system == 'Microsoft' and release == 'Windows':
1233 # release is no longer printed. This causes the
1234 # system and release to be misidentified.
1237 release = 'Vista'
1239 release = ''
1252 release,vendor,vminfo,osinfo = java_ver()
1260 # OpenVMS seems to have release and version mixed up
1261 if not release or release == '0':
1262 release = version
1284 if release == 'unknown':
1285 release = ''
1294 if system == 'Microsoft' and release == 'Windows':
1296 release = 'Vista'
1298 _uname_cache = system,node,release,version,machine,processor
1322 def release():
1324 """ Returns the system's release, e.g. '2.2.0' or 'NT'
1333 """ Returns the system's release version, e.g. '#3 on degas'
1580 system,node,release,version,machine,processor = uname()
1584 system,release,version = system_alias(system,release,version)
1590 platform = _platform(system,release)
1592 platform = _platform(system,release,version,csd)
1598 platform = _platform(system,release,machine,processor,
1604 platform = _platform(system,release,machine,processor,
1611 platform = _platform(system,release,version)
1613 platform = _platform(system,release,version,
1620 platform = _platform(system,release)
1622 platform = _platform(system,release,machine)
1627 platform = _platform(system,release)
1630 platform = _platform(system,release,machine,processor,bits,linkage)