[oe-commits] org.oe.dev classes/patch.bbclass: Create a "patches" directory when initialising

lenehan commit openembedded-commits at lists.openembedded.org
Wed Aug 30 07:22:30 UTC 2006


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.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 4b6ef12415cd44dacf0804d01ea5a6e0120afa7e
ViewMTN: http://monotone.openembedded.org/revision.psp?id=4b6ef12415cd44dacf0804d01ea5a6e0120afa7e
Files:
1
classes/patch.bbclass
Diffs:

#
# mt diff -r43921a863340a7eae6a5f33d7d3a1fa6c76bacca -r4b6ef12415cd44dacf0804d01ea5a6e0120afa7e
#
# 
# 
# patch "classes/patch.bbclass"
#  from [06bfa04274235a178643633deba99054024b741c]
#    to [43a7cdac0d459f62c68c6d258f001d3b06688906]
# 
============================================================
--- classes/patch.bbclass	06bfa04274235a178643633deba99054024b741c
+++ classes/patch.bbclass	43a7cdac0d459f62c68c6d258f001d3b06688906
@@ -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:






More information about the Openembedded-commits mailing list