Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 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))
Beispiel #5
0
 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))
Beispiel #6
0
 def execute (self, logger):
     loggedos.symlink (logger, self.src, self.dest)
Beispiel #7
0
 def execute(self, logger):
     loggedos.symlink(logger, self.src, self.dest)