瀏覽代碼

Fix error when arch dir exists

Markus Lindenberg 8 年之前
父節點
當前提交
18bae87360
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      docker-build.py

+ 4 - 1
docker-build.py

@@ -98,7 +98,10 @@ for target in targets:
             rename('output/images/sysupgrade/%s' % f, '%s/%s' % (sysupdir, f))
 
         # Move modules to output
-        makedirs('%s/%s' % (modulesdir, arch))
+        try:
+            makedirs('%s/%s' % (modulesdir, arch))
+        except FileExistsError:
+            pass
         variantdir = '%s/%s/%s' % (modulesdir, arch, variant)
         rename('output/modules/gluon-%s-%s/%s/%s' % (site, release, arch, variant), variantdir)