summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/bin/bitbake-setup13
1 files changed, 9 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-setup b/bitbake/bin/bitbake-setup
index d6509500d8..b07bf2eb7c 100755
--- a/bitbake/bin/bitbake-setup
+++ b/bitbake/bin/bitbake-setup
@@ -509,10 +509,15 @@ def do_fetch(fetcher, dir):
509 509
510def update_registry(registry, cachedir, d): 510def update_registry(registry, cachedir, d):
511 registrydir = 'configurations' 511 registrydir = 'configurations'
512 full_registrydir = os.path.join(cachedir, registrydir) 512 if registry.startswith("."):
513 print("Fetching configuration registry\n {}\ninto\n {}".format(registry, full_registrydir)) 513 full_registrydir = os.path.join(os.getcwd(), registry, registrydir)
514 fetcher = bb.fetch.Fetch(["{};destsuffix={}".format(registry, registrydir)], d) 514 elif registry.startswith("/"):
515 do_fetch(fetcher, cachedir) 515 full_registrydir = os.path.join(registry, registrydir)
516 else:
517 full_registrydir = os.path.join(cachedir, registrydir)
518 print("Fetching configuration registry\n {}\ninto\n {}".format(registry, full_registrydir))
519 fetcher = bb.fetch.Fetch(["{};destsuffix={}".format(registry, registrydir)], d)
520 do_fetch(fetcher, cachedir)
516 return full_registrydir 521 return full_registrydir
517 522
518def has_expired(expiry_date): 523def has_expired(expiry_date):