]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fetch2: Ensure directory for stampfile exists before trying to create it
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Feb 2013 16:17:30 +0000 (16:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Feb 2013 16:17:30 +0000 (16:17 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py

index 90c894f60f56af5341df4552127cd9d064ec27ec..252e2966b4694ba6a64fa07d8ebb519972d5faf9 100644 (file)
@@ -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):