Skip to contentSkip to conversation

CreateAutoConf.py: fix default path for auto.conf

PATCH New Bill Randle 1 participant 1 message Jun 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CreateAutoConf.py: fix default path for auto.conf

Commit 1d67af87fafe89f75041824bfcf00e92163b949f made the destination path configurable, with the default supposed to be "./build/conf/auto.conf". A typo in the patch instead set the default to "./build/auto.conf". In addition, replace hard coded path with configurable value when removing a previous auto.conf file.

---
 lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/python2.7/site-packages/autobuilder/buildsteps/CreateAutoConf.py +2 -2
index 57726b7..8817d69 100644
@@ -43,7 +43,7 @@ class CreateAutoConf(ShellCommand):
         self.kwargs = kwargs
         self.devkernel = True
         self.tmpdir = None
-        self.autoconfpath = "./build/auto.conf"
+        self.autoconfpath = "./build/conf/auto.conf"
         self.rmautoconf = "True"
         for k, v in argdict.iteritems():
             if type(v) is bool:
@@ -65,7 +65,7 @@ class CreateAutoConf(ShellCommand):
         self.command = ""
         fout = ""
         if self.rmautoconf == "True":
-            self.command += "rm -rf ./build/conf/auto.conf;"
+            self.command += "rm -rf %s;" % self.autoconfpath
         #check to see if we have a prepend
         if self.atextprepend:
             fout = fout +"\n"+ self.atextprepend
Signature · 1 line
2.5.5