rpm_patcher.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:combirepo 作者: Samsung 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号