Prechádzať zdrojové kódy

Fix error when arch dir exists

Markus Lindenberg 8 rokov pred
rodič
commit
18bae87360
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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)