Пример #1
0
 def _summary(self):
     name, squashfs, base = get_version(os.path.join(self.source.get_filename(), 'master'))
     if name == 'Unknown':
         name = _('Unknown')
     self.name.set_text(name)
     if base == 'Unknown':
         base = _('Unknown')
     self.base_version.set_text(base)
     if squashfs is None:
         self.compression.set_text(_('Cloop'))
     elif squashfs is True:
         self.compression.set_text(_('SquashFS'))
     else:
         self.compression.set_text(_('Cloop'))
Пример #2
0
 def _summary(self):
     name, squashfs, base = get_version(
         os.path.join(self.source.get_filename(), 'master'))
     if name == 'Unknown':
         name = _('Unknown')
     self.name.set_text(name)
     if base == 'Unknown':
         base = _('Unknown')
     self.base_version.set_text(base)
     if squashfs is None:
         self.compression.set_text(_('Cloop'))
     elif squashfs is True:
         self.compression.set_text(_('SquashFS'))
     else:
         self.compression.set_text(_('Cloop'))
Пример #3
0
 def _summary(self):
     name, squashfs, base = get_version(self.source.get_filename())
     if name == 'Unknown':
         name = _('Unknown')
     self.base_version.set_text(name)
     if squashfs is None:
         self.base_compression.set_active(0)
         self.base_compression.set_sensitive(True)
     elif squashfs is True:
         self.base_compression.set_active(1)
     else:
         self.base_compression.set_active(0)
     _yes_no = {True: _('Yes'), False: _('No')}
     self.options.set_text('%s %s | %s %s | %s %s' % (_('Filesystem:'), _yes_no[self.filesystem.get_active()],
                                                      _('Minirt:'), _yes_no[self.minirt.get_active()],
                                                      _('SquashFS:'), _yes_no[self.squashfs.get_active()]))