X-Git-Url: https://git.tld-linux.org/?p=tld-builder.git;a=blobdiff_plain;f=TLD_Builder%2Futil.py;fp=TLD_Builder%2Futil.py;h=af6b8f12bd2e8ca3022a2215f4b1cd19bac7e3e2;hp=602bad176fe9e4ba01c6d7f4344bd235dc0c2ae2;hb=a68953c88fba6e657febf9cb06273f44288f759c;hpb=4c1b8295857d2b8d2b2975c4030d61c3f1b61bcb diff --git a/TLD_Builder/util.py b/TLD_Builder/util.py index 602bad1..af6b8f1 100644 --- a/TLD_Builder/util.py +++ b/TLD_Builder/util.py @@ -32,15 +32,6 @@ def pkg_name(nvr): def msg(m): sys.stderr.write(m) -def sendfile(src, dst): - cnt = 0 - while 1: - s = src.read(10000) - if s == "" or s == b"": break - cnt += len(s) - dst.write(s) - return cnt - def append_to(log, msg): f = open(log, "a") f.write("%s\n" % msg)