[poky] [PATCH] bitbake/fetch2: Fix typo which broke use of tarballs

Richard Purdie richard.purdie at linuxfoundation.org
Fri Mar 16 16:45:09 PDT 2012


On Fri, 2012-03-16 at 13:30 -0600, Gary Thomas wrote:
> Signed-off-by: Gary Thomas <gary at mlbassoc.com>
> ---
>  bitbake/lib/bb/fetch2/__init__.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
> index 6847873..7524fa9 100644
> --- a/bitbake/lib/bb/fetch2/__init__.py
> +++ b/bitbake/lib/bb/fetch2/__init__.py
> @@ -192,7 +192,7 @@ def uri_replace(ud, uri_find, uri_replace, d):
>                  if uri_find_decoded.index(i) == 2:
>                      basename = None
>                      if ud.mirrortarball:
> -                        basename = os.path.basename(ud.localpath)
> +                        basename = os.path.basename(ud.mirrortarball)
>                      elif ud.localpath:
>                          basename = os.path.basename(ud.localpath)
>                      if basename and result_decoded[loc].endswith("/"):

Should really go to the bitbake-devel list but merged to master since
its a needed fix, thanks.

Cheers,

Richard




More information about the poky mailing list