Coding style.
This commit is contained in:
parent
b67d06c1e9
commit
e8d9c301c0
1 changed files with 2 additions and 6 deletions
|
|
@ -37,13 +37,10 @@ def run_in_container(container, command):
|
||||||
|
|
||||||
|
|
||||||
def build_ubuntu():
|
def build_ubuntu():
|
||||||
cmd("sudo debootstrap cosmic ubuntu.part")
|
cmd("sudo debootstrap --components=main,restricted,universe,multiverse "
|
||||||
|
"cosmic ubuntu.part")
|
||||||
run_in_container("ubuntu.part",
|
run_in_container("ubuntu.part",
|
||||||
"ln -sf /lib/systemd/resolv.conf /etc/resolv.conf")
|
"ln -sf /lib/systemd/resolv.conf /etc/resolv.conf")
|
||||||
run_in_container("ubuntu.part",
|
|
||||||
"sed -i -e 's/main/main restricted universe"
|
|
||||||
" multiverse/g' /etc/apt/sources.list")
|
|
||||||
run_in_container("ubuntu.part", "apt-get update")
|
|
||||||
os.rename("ubuntu.part", "ubuntu")
|
os.rename("ubuntu.part", "ubuntu")
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -58,7 +55,6 @@ def build_fedora():
|
||||||
def build_debian():
|
def build_debian():
|
||||||
cmd("sudo debootstrap --components=main,contrib,non-free "
|
cmd("sudo debootstrap --components=main,contrib,non-free "
|
||||||
"--include=sudo jessie debian.part")
|
"--include=sudo jessie debian.part")
|
||||||
run_in_container("debian.part", "apt-get update")
|
|
||||||
os.rename("debian.part", "debian")
|
os.rename("debian.part", "debian")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue