[projects/pld-builder.new: 4/7] Strip trailing '/' from chroot

draenog draenog at pld-linux.org
Thu Dec 6 19:18:46 CET 2012


commit 500f3c399e7377d564f25bbf1afecf26e90511e1
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Mon Dec 3 17:31:18 2012 +0000

    Strip trailing '/' from chroot
    
    Allow to specify chroot in builder.conf with and without '/'.

 PLD_Builder/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/config.py b/PLD_Builder/config.py
index bb0b594..dcdf762 100644
--- a/PLD_Builder/config.py
+++ b/PLD_Builder/config.py
@@ -88,7 +88,7 @@ class Builder_Conf:
         if builder not in p.sections():
             log.panic("builder %s not in config file" % builder)
         self.arch = get("arch")
-        self.chroot = get("chroot")
+        self.chroot = get("chroot").rstrip('/')
         self.buildlogs_url = get("buildlogs_url", "/dev/null")
         self.buildlogs = get("buildlogs", "http://buildlogs.pld-linux.org/")
         self.ftp_url = get("ftp_url")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/c5bc3f6ddecdfa78f83c7f7fc4b8b02733831340



More information about the pld-cvs-commit mailing list