summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-15 16:17:30 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-15 16:17:48 (GMT)
commit55d17578d62056dbbaaf61a9dc052f21960c0935 (patch)
treecf7f6d8d8d6034bec976ec92f0068b4198955d26
parentf7836b129954244937d5d20c090fb9c5a7e9f61d (diff)
downloadpoky-55d17578d62056dbbaaf61a9dc052f21960c0935.tar.gz
bitbake: fetch2: Ensure directory for stampfile exists before trying to create it
(Bitbake rev: cf510e3da36e53f98ca86501747364bf4699ecc1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py1
1 files changed, 1 insertions, 0 deletions
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):
584 dldir = ld.getVar("DL_DIR", True) 584 dldir = ld.getVar("DL_DIR", True)
585 if origud.mirrortarball and os.path.basename(ud.localpath) == os.path.basename(origud.mirrortarball) \ 585 if origud.mirrortarball and os.path.basename(ud.localpath) == os.path.basename(origud.mirrortarball) \
586 and os.path.basename(ud.localpath) != os.path.basename(origud.localpath): 586 and os.path.basename(ud.localpath) != os.path.basename(origud.localpath):
587 bb.utils.mkdirhier(os.path.dirname(ud.donestamp))
587 open(ud.donestamp, 'w').close() 588 open(ud.donestamp, 'w').close()
588 dest = os.path.join(dldir, os.path.basename(ud.localpath)) 589 dest = os.path.join(dldir, os.path.basename(ud.localpath))
589 if not os.path.exists(dest): 590 if not os.path.exists(dest):