[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.50-174-ga23da25
Holger Levsen
holger at layer-acht.org
Mon May 13 14:09:09 UTC 2013
The following commit has been merged in the develop branch:
commit 5920ce9829b7fd3a337ba6108dfc9c903bd86edd
Author: Andreas Beckmann <anbe at debian.org>
Date: Fri May 10 03:01:19 2013 +0200
p-m: reindent
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/piuparts-master-backend.py b/piuparts-master-backend.py
index 6777ff1..db74dc1 100644
--- a/piuparts-master-backend.py
+++ b/piuparts-master-backend.py
@@ -362,21 +362,20 @@ class Master(Protocol):
def main():
setup_logging(logging.INFO, None)
- if True:
- global_config = Config(section="global")
- global_config.read(CONFIG_FILE)
- if global_config["proxy"]:
- os.environ["http_proxy"] = global_config["proxy"]
- master_directory = global_config["master-directory"]
+ global_config = Config(section="global")
+ global_config.read(CONFIG_FILE)
+ if global_config["proxy"]:
+ os.environ["http_proxy"] = global_config["proxy"]
+ master_directory = global_config["master-directory"]
- if not os.path.exists(master_directory):
- os.makedirs(master_directory)
+ if not os.path.exists(master_directory):
+ os.makedirs(master_directory)
- os.chdir(master_directory)
+ os.chdir(master_directory)
- m = Master(sys.stdin, sys.stdout)
- while m.do_transaction():
- pass
+ m = Master(sys.stdin, sys.stdout)
+ while m.do_transaction():
+ pass
if __name__ == "__main__":
main()
--
piuparts git repository
More information about the Piuparts-commits
mailing list