ubuntu.py 文件源码

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

项目:charm-openstack-dashboard 作者: openstack 项目源码 文件源码
def apt_cache(in_memory=True, progress=None):
    """Build and return an apt cache."""
    from apt import apt_pkg
    apt_pkg.init()
    if in_memory:
        apt_pkg.config.set("Dir::Cache::pkgcache", "")
        apt_pkg.config.set("Dir::Cache::srcpkgcache", "")
    return apt_pkg.Cache(progress)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号