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)
评论列表
文章目录