Explorar o código

Fix error when arch dir exists

Markus Lindenberg %!s(int64=8) %!d(string=hai) anos
pai
achega
18bae87360
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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)