def create_patched_packages(queue):
"""
Patches the given package using rpmrebuild and the patching root.
@param root The root to be used.
"""
root = queue.get()
logging.debug("Chrooting to {0}".format(root))
os.chroot(root)
logging.debug("Chrooting to {0} done.".format(root))
os.chdir("/")
if not os.path.isfile("/Makefile"):
logging.info("Chroot has no jobs to perform.")
queue.task_done()
return
make_command = ["make"]
if not hidden_subprocess.visible_mode:
make_command.append("--silent")
subprocess.call(make_command)
logging.debug("Exiting from {0}".format(root))
queue.task_done()
评论列表
文章目录