]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fetch2: Fix mirror repo tarball creation
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Feb 2014 12:57:38 +0000 (12:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Feb 2014 13:00:29 +0000 (13:00 +0000)
A typo was meaning that the mirror creation method wasn't being called
when it should have been. Fix the type to fix mirror tarball creation.

[YOCTO #5284]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py

index de95074c402d95a5c17d30d328427b6f27a91a4b..dc6c821011058245c9ca8c9d551f57b1103b792c 100644 (file)
@@ -808,7 +808,7 @@ def try_mirror_url(origud, ud, ld, check = False):
                 os.symlink(ud.localpath, dest)
             if not os.path.exists(origud.donestamp) or origud.method.need_update(origud, ld):
                 origud.method.download(origud, ld)
-                if hasattr(ud.method,"build_mirror_data"):
+                if hasattr(origud.method,"build_mirror_data"):
                     origud.method.build_mirror_data(origud, ld)
             return ud.localpath
         # Otherwise the result is a local file:// and we symlink to it