Skip to content

Commit e980e68

Browse files
committed
Move mbed library releases ZIP files to .bld. Fixed caching issue for Mercurial
1 parent aebf562 commit e980e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed/mbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def clone(url, path=None, depth=None, protocol=None, cache=None):
262262
error(e[1], e[0])
263263

264264
def fetch_rev(url, rev):
265-
tmp_file = '.rev-' + rev + '.zip'
265+
tmp_file = os.path.join('.'+Bld.name, '.rev-' + rev + '.zip')
266266
arch_dir = 'mbed-' + rev
267267
try:
268268
if not os.path.exists(tmp_file):
@@ -374,7 +374,7 @@ def clone(url, name=None, depth=None, protocol=None, cache=None):
374374

375375
try:
376376
with cd(name):
377-
Hg.update()
377+
Hg.update(None, True)
378378
main = False
379379
except ProcessException:
380380
if os.path.exists(name):

0 commit comments

Comments
 (0)