summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/scriptutils.py')
-rw-r--r--scripts/lib/scriptutils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py
index 3366882635..e79a195b1f 100644
--- a/scripts/lib/scriptutils.py
+++ b/scripts/lib/scriptutils.py
@@ -85,6 +85,10 @@ def fetch_uri(d, uri, destdir, srcrev=None):
85 ud = fetcher.ud[u] 85 ud = fetcher.ud[u]
86 ud.ignore_checksums = True 86 ud.ignore_checksums = True
87 fetcher.download() 87 fetcher.download()
88 for u in fetcher.ud:
89 ud = fetcher.ud[u]
90 if ud.localpath.rstrip(os.sep) == localdata.getVar('DL_DIR', True).rstrip(os.sep):
91 raise Exception('Local path is download directory - please check that the URI "%s" is correct' % uri)
88 fetcher.unpack(destdir) 92 fetcher.unpack(destdir)
89 for u in fetcher.ud: 93 for u in fetcher.ud:
90 ud = fetcher.ud[u] 94 ud = fetcher.ud[u]