]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Strip trailing '/' from chroot
authorKacper Kornet <draenog@pld-linux.org>
Mon, 3 Dec 2012 17:31:18 +0000 (17:31 +0000)
committerKacper Kornet <draenog@pld-linux.org>
Thu, 6 Dec 2012 18:17:17 +0000 (18:17 +0000)
Allow to specify chroot in builder.conf with and without '/'.

PLD_Builder/config.py

index bb0b594473c0ca7aff3b04e8b69c2f2a5c235a5b..dcdf76262688c911eff32811efdc1960917b72ff 100644 (file)
@@ -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")
This page took 0.258295 seconds and 4 git commands to generate.