diff options
Diffstat (limited to 'yocto-poky/scripts/lib/scriptutils.py')
-rw-r--r-- | yocto-poky/scripts/lib/scriptutils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yocto-poky/scripts/lib/scriptutils.py b/yocto-poky/scripts/lib/scriptutils.py index 336688263..e79a195b1 100644 --- a/yocto-poky/scripts/lib/scriptutils.py +++ b/yocto-poky/scripts/lib/scriptutils.py @@ -85,6 +85,10 @@ def fetch_uri(d, uri, destdir, srcrev=None): ud = fetcher.ud[u] ud.ignore_checksums = True fetcher.download() + for u in fetcher.ud: + ud = fetcher.ud[u] + if ud.localpath.rstrip(os.sep) == localdata.getVar('DL_DIR', True).rstrip(os.sep): + raise Exception('Local path is download directory - please check that the URI "%s" is correct' % uri) fetcher.unpack(destdir) for u in fetcher.ud: ud = fetcher.ud[u] |