patch.bbclass: give empty file for quilt so it will not use config from user homedir...
authorMarcin Juszkiewicz <hrw@openembedded.org>
Fri, 3 Aug 2007 14:32:53 +0000 (14:32 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Fri, 3 Aug 2007 14:32:53 +0000 (14:32 +0000)
classes/patch.bbclass

index 2ba6729..0cc2028 100644 (file)
@@ -1,5 +1,8 @@
 # Copyright (C) 2006  OpenedHand LTD
 
+# Point to an empty file so any user's custom settings don't break things
+QUILTRCFILE ?= "${STAGING_BINDIR_NATIVE}/quiltrc"
+
 def patch_init(d):
        import os, sys
 
@@ -180,9 +183,10 @@ def patch_init(d):
 
        class QuiltTree(PatchSet):
                def _runcmd(self, args, run = True):
+                       quiltrc = bb.data.getVar('QUILTRCFILE', self.d, 1)
                        if not run:
-                               return ["quilt"] + args
-                       runcmd(["quilt"] + args, self.dir)
+                               return ["quilt"] + ["--quiltrc"] + [quiltrc] + args
+                       runcmd(["quilt"] + ["--quiltrc"] + [quiltrc] + args, self.dir)
 
                def _quiltpatchpath(self, file):
                        return os.path.join(self.dir, "patches", os.path.basename(file))