summaryrefslogtreecommitdiff
path: root/classes/patch.bbclass
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-08-30 07:18:07 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-08-30 07:18:07 +0000
commit4b58334866dda9b3415fee5668b2c7bc08447905 (patch)
treef9970f35753ecdbfd3be7d01bc2cd283184decbd /classes/patch.bbclass
parenta350439c9ae71b8d437730e8659a9f5561d0b0d5 (diff)
classes/patch.bbclass: Create a "patches" directory when initialising
the quilt patcher class. Without this quilt will search for a patches directory - starting from the current directory up to the root directory. If it finds an existing patches directory it will use it for its patches. This causes all sorts of problems since it is not where the patches are expected to be. Prior to the recent patcher changes this directory was being created.
Diffstat (limited to 'classes/patch.bbclass')
-rw-r--r--classes/patch.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/patch.bbclass b/classes/patch.bbclass
index ea0182484e..c62a8ebd76 100644
--- a/classes/patch.bbclass
+++ b/classes/patch.bbclass
@@ -174,6 +174,9 @@ def patch_init(d):
def __init__(self, dir, d):
PatchSet.__init__(self, dir, d)
self.initialized = False
+ p = os.path.join(self.dir, 'patches')
+ if not os.path.exists(p):
+ os.mkdir(p)
def Clean(self):
try: