diff options
authorChen Qi <>2018-05-14 08:35:22 (GMT)
committerRichard Purdie <>2018-08-15 09:22:46 (GMT)
commit3259b70497355a009a2ce8159e4f851278e704a1 (patch)
parentb332766553a4adc1516518ce083fa64456fc2c01 (diff)
devtool/ error out in case of downloading file failure
It's possible that downloading file from updateserver fails. In this case, we should error out instead of continue. We have users reporting unexpected behavior of 'devtool sdk-update'. When an invalid url is supplied, e.g., `devtool sdk-update http://invalid', the program reports 'Note: Already up-to-date'. This is obviously not expected. We should error out in such case. (From OE-Core rev: 449564783dfb162536a2f772b3a8704973221e0f) (From OE-Core rev: 4b022a62998e38dbefe1f882bcb9a229485ac9da) Signed-off-by: Chen Qi <> Signed-off-by: Richard Purdie <> Signed-off-by: Armin Kuster <> Signed-off-by: Richard Purdie <>
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/devtool/ b/scripts/lib/devtool/
index f46577c..4616753 100644
--- a/scripts/lib/devtool/
+++ b/scripts/lib/devtool/
@@ -145,6 +145,9 @@ def sdk_update(args, config, basepath, workspace):
145 # Fetch manifest from server 145 # Fetch manifest from server
146 tmpmanifest = os.path.join(tmpsdk_dir, 'conf', 'sdk-conf-manifest') 146 tmpmanifest = os.path.join(tmpsdk_dir, 'conf', 'sdk-conf-manifest')
147 ret ="wget -q -O %s %s/conf/sdk-conf-manifest" % (tmpmanifest, updateserver), shell=True) 147 ret ="wget -q -O %s %s/conf/sdk-conf-manifest" % (tmpmanifest, updateserver), shell=True)
148 if ret != 0:
149 logger.error("Cannot dowload files from %s" % updateserver)
150 return ret
148 changedfiles = check_manifest(tmpmanifest, basepath) 151 changedfiles = check_manifest(tmpmanifest, basepath)
149 if not changedfiles: 152 if not changedfiles:
150"Already up-to-date") 153"Already up-to-date")