summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/sdk.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/sdk.py')
-rw-r--r--scripts/lib/devtool/sdk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py
index ef1d0a723e..331c236bd1 100644
--- a/scripts/lib/devtool/sdk.py
+++ b/scripts/lib/devtool/sdk.py
@@ -160,11 +160,11 @@ def sdk_update(args, config, basepath, workspace):
160 logger.debug("Updating meta data via git ...") 160 logger.debug("Updating meta data via git ...")
161 # Try using 'git pull', if failed, use 'git clone' 161 # Try using 'git pull', if failed, use 'git clone'
162 if os.path.exists(os.path.join(basepath, 'layers/.git')): 162 if os.path.exists(os.path.join(basepath, 'layers/.git')):
163 ret = subprocess.call("cd layers && git pull", shell=True) 163 ret = subprocess.call("cd layers && git pull %s/layers/.git" % updateserver, shell=True)
164 else: 164 else:
165 ret = -1 165 ret = -1
166 if ret != 0: 166 if ret != 0:
167 ret = subprocess.call("rm -rf layers && git clone %s/layers" % updateserver, shell=True) 167 ret = subprocess.call("rm -rf layers && git clone %s/layers/.git" % updateserver, shell=True)
168 if ret != 0: 168 if ret != 0:
169 logger.error("Updating meta data via git failed") 169 logger.error("Updating meta data via git failed")
170 return ret 170 return ret