def ready_base_for_install(target, conn, suite, fstabobj): deprecated('ready_base_for_install appears to be deprecated') set_root_passwd(target, myline) make_sources_list(conn, target, suite) make_interfaces_simple(target) make_fstab(fstabobj, target) target = path(target) resolvconf = file('/etc/resolv.conf').read() target_resolvconf = target / 'etc' / 'resolv.conf' target_resolvconf.write(resolvconf)
def __init__(self, data={}): deprecated("This Template class is completely deprecated.") _Template.__init__(self, data) self.template_path = None
def mount_tmp(target='/tmp'): deprecated('mount_tmp is deprecated use mount_tmpfs instead') os.system('mount -t tmpfs tmpfs %s' % target)
def set_trait(self, trait): deprecated("set_trait is obsolete") self.trait = trait
def _trait_temp_path(self, tmp_path, suite, trait, filesel=False): deprecated("_trait_temp_path is obsolete") return self._filesel(filesel, os.path.join(tmp_path, suite, trait))
def _filesel(self, filesel, path): deprecated('_filesel is not used anymore') if filesel: path += '/' return path
def _suite_template_path(self, suite, filesel=False): deprecated("_suite_template_path is obsolete") return self._filesel(filesel, os.path.join(self.template_path, suite))
def _template_filename(self, suite, trait, package, template): msg = '_template_filename was only useful when the' msg += ' templates were stored in tarfiles' deprecated(msg) tpath = os.path.join(self.template_path, suite, trait, package) return os.path.join(tpath, template + '.template')
def set_path(self, path): deprecated("Template.set_path has unknown importance") self.template_path = path
def update_templatedata(self, template, data): deprecated('update_templatedata is deprecated use update_template instead') self.update_template(template, contents=data)
def set_suite(self, suite): deprecated("set_suite is obsolete") self.suite = suite
def ready_base_for_install(target, conn, suite, fstabobj): deprecated('ready_base_for_install appears to be deprecated') set_root_passwd(target, myline) make_sources_list(conn, target, suite) make_interfaces_simple(target) make_fstab(fstabobj, target)
def update_templatedata(self, template, data): deprecated( 'update_templatedata is deprecated use update_template instead') self.update_template(template, contents=data)