示例#1
0
文件: build.py 项目: PhilHolmes/gub
 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)
示例#2
0
文件: build.py 项目: marnen/gub
 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)
示例#3
0
文件: commands.py 项目: epronk/gub
 def execute (self, logger):
     loggedos.remove (logger, self.file)
示例#4
0
 def execute(self, logger):
     loggedos.remove(logger, self.file)