Ver código fonte

Fix error when arch dir exists

Markus Lindenberg 8 anos atrás
pai
commit
18bae87360
1 arquivos alterados com 4 adições e 1 exclusões
  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)