def rewire(logger, file): if os.path.islink(file): s = os.readlink(file) if s.startswith('/') and self.settings.system_root not in s: new_dest = os.path.join(self.settings.system_root, s[1:]) loggedos.remove(logger, file) loggedos.symlink(logger, new_dest, file)
def rewire (logger, file): if os.path.islink (file): s = os.readlink (file) if s.startswith ('/') and self.settings.system_root not in s: new_dest = os.path.join (self.settings.system_root, s[1:]) loggedos.remove (logger, file) loggedos.symlink (logger, new_dest, file)
def move_target_lib (logger, file_name): base = os.path.split (self.expand (file_name))[1] new_name = os.path.join (self.expand ('%(install_prefix)s%(cross_dir)s/lib'), base) if os.path.islink (file_name): target = os.path.basename (misc.delinkify (file_name)) loggedos.symlink (logger, target, new_name) else: loggedos.rename (logger, file_name, new_name)
def dylib_link(logger, fname): directory = os.path.split(fname)[0] src = os.path.basename(fname) dst = os.path.splitext(os.path.basename(fname))[0] + '.so' loggedos.symlink(logger, src, os.path.join(directory, dst))
def dylib_link (logger, fname): directory = os.path.split (fname)[0] src = os.path.basename (fname) dst = os.path.splitext (os.path.basename (fname))[0] + '.so' loggedos.symlink (logger, src, os.path.join (directory, dst))
def execute (self, logger): loggedos.symlink (logger, self.src, self.dest)
def execute(self, logger): loggedos.symlink(logger, self.src, self.dest)