From 6abedce13a6a77182a4a08a1028a7d25c806443d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 15 Feb 2013 16:17:30 +0000 Subject: [PATCH] bitbake: fetch2: Ensure directory for stampfile exists before trying to create it (Bitbake rev: cf510e3da36e53f98ca86501747364bf4699ecc1) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 90c894f..252e296 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -584,6 +584,7 @@ def try_mirror_url(newuri, origud, ud, ld, check = False): dldir = ld.getVar("DL_DIR", True) if origud.mirrortarball and os.path.basename(ud.localpath) == os.path.basename(origud.mirrortarball) \ and os.path.basename(ud.localpath) != os.path.basename(origud.localpath): + bb.utils.mkdirhier(os.path.dirname(ud.donestamp)) open(ud.donestamp, 'w').close() dest = os.path.join(dldir, os.path.basename(ud.localpath)) if not os.path.exists(dest): -- 2.7.4