]> code.ossystems Code Review - openembedded-core.git/commitdiff
patch.bbclass: Specify a quiltrc file so users settings don't interfere with correct...
authorRichard Purdie <richard@openedhand.com>
Sat, 14 Apr 2007 11:07:33 +0000 (11:07 +0000)
committerRichard Purdie <richard@openedhand.com>
Sat, 14 Apr 2007 11:07:33 +0000 (11:07 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1509 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/patch.bbclass

index b794f8159355004044a6cad75c3f0fcbae040efd..1f10d19f79f406fd8ae9cd753dff7831a1bd24df 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
 
@@ -170,7 +173,8 @@ def patch_init(d):
 
        class QuiltTree(PatchSet):
                def _runcmd(self, args):
-                       runcmd(["quilt"] + args, self.dir)
+                       quiltrc = bb.data.getVar('QUILTRCFILE', self.d, 1)
+                       runcmd(["quilt"] + ["--quiltrc"] + [quiltrc] + args, self.dir)
 
                def _quiltpatchpath(self, file):
                        return os.path.join(self.dir, "patches", os.path.basename(file))