def __install_rpmrebuild(self, queue):
"""
Chroots to the given path and installs rpmrebuild in it.
@param queue The queue where the result will be put.
"""
os.chroot(self.patching_root)
os.chdir("/")
os.chdir("/rpmrebuild/src")
hidden_subprocess.call("Making the rpmrebuild.", ["make"])
hidden_subprocess.call("Installing the rpmrebuild.",
["make", "install"])
if not check.command_exists("rpmrebuild"):
sys.exit("Error.")
queue.put(True)
评论列表
文章目录