Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
 def __init__(self, data={}):
     deprecated("This Template class is completely deprecated.")
     _Template.__init__(self, data)
     self.template_path = None
Пример #4
0
def mount_tmp(target='/tmp'):
    deprecated('mount_tmp is deprecated use mount_tmpfs instead')
    os.system('mount -t tmpfs tmpfs %s' % target)
Пример #5
0
def mount_tmp(target='/tmp'):
    deprecated('mount_tmp is deprecated use mount_tmpfs instead')
    os.system('mount -t tmpfs tmpfs %s' % target)
Пример #6
0
 def set_trait(self, trait):
     deprecated("set_trait is obsolete")
     self.trait = trait
Пример #7
0
 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))
Пример #8
0
 def _filesel(self, filesel, path):
     deprecated('_filesel is not used anymore')
     if filesel:
         path += '/'
     return path
Пример #9
0
 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))
Пример #10
0
 def _filesel(self, filesel, path):
     deprecated('_filesel is not used anymore')
     if filesel:
         path += '/'
     return path
Пример #11
0
 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')
Пример #12
0
 def set_path(self, path):
     deprecated("Template.set_path has unknown importance")
     self.template_path = path
Пример #13
0
 def __init__(self, data={}):
     deprecated("This Template class is completely deprecated.")
     _Template.__init__(self, data)
     self.template_path = None
Пример #14
0
 def update_templatedata(self, template, data):
     deprecated('update_templatedata is deprecated use update_template instead')
     self.update_template(template, contents=data)
Пример #15
0
 def set_path(self, path):
     deprecated("Template.set_path has unknown importance")
     self.template_path = path
Пример #16
0
 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')
Пример #17
0
 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))
Пример #18
0
 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))
Пример #19
0
 def set_suite(self, suite):
     deprecated("set_suite is obsolete")
     self.suite = suite
Пример #20
0
 def set_suite(self, suite):
     deprecated("set_suite is obsolete")
     self.suite = suite
Пример #21
0
 def set_trait(self, trait):
     deprecated("set_trait is obsolete")
     self.trait = trait
Пример #22
0
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)
Пример #23
0
 def update_templatedata(self, template, data):
     deprecated(
         'update_templatedata is deprecated use update_template instead')
     self.update_template(template, contents=data)