create.py 文件源码

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

项目:Coffer 作者: Max00355 项目源码 文件源码
def copyBaseFiles(path):
    print (text.copyingFiles)
    # Supports 64 bit and 32 bit, no arm yet (though should be an easy fix)
    if platform.architecture()[0] == "64bit":
        arch = "amd64"
    else:
        arch = "i386"

    version = getFlag.getFlag("-v")
    architecture = getFlag.getFlag("-a")
    repo = getFlag.getFlag("-r") 
    if version not in content.versions:
        version = "xenial"
    if architecture and architecture in content.architectures:
        arch = content.architectures.get(architecture)
    print (text.usingVersion.format(version))
    debCmd = "bash " + getRootDir.getCofferDir() + "debootstrap/debootstrap --arch=" + arch + " {} {}"
    if repo:
        debCmd += " " + repo
    os.system(debCmd.format(version, path))
    getSourceList(path, version)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号