def _fix_import_error(self): zs.log("FIX:ImportError: No module named _sysconfigdata_nd") python_path = "/usr/lib/python2.7/" plat = "plat-x86_64-linux-gnu/" py = "_sysconfigdata_nd.py" orig = "%s%s%s" % (python_path, plat, py) link = "%s%s" % (python_path, py) zs.perform("ln -s %s %s" % (orig, link))
def repo_add_package(self, packages): """packages is expected to be a space separated list of packages""" pkg_list = packages.split() zs.log("Adding packages %s " % pkg_list) append = self.package_list().append [append(pkg) for pkg in pkg_list]