diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-04-10 15:32:23 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-04-10 15:32:23 +0000 |
commit | 085b3e742c43133a4c840803277b4d9cd90fda6b (patch) | |
tree | f66a602ce68f343706e48c7e567649d795e42049 /install | |
parent | 6a0b4e921b82024dbb89306740b8386bb7008352 (diff) | |
download | live-085b3e742c43133a4c840803277b4d9cd90fda6b.tar.gz |
Can communicate with debootstrap
Diffstat (limited to 'install')
-rwxr-xr-x | install | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -504,10 +504,12 @@ def debootstrap(): os.close(write) f = os.fdopen(read, 'r', 0) r = re.compile(' +') - for line in f: - i = r.split(line) - if i[0] == 'P:': - progress.progress = int(int(i[1]) * 100 / int(i[2])) + while True: + line = f.readline() + if line: + progress.text = line + else: + break |