Fix use of incorrect constant.
[WebKit-https.git] / WebKitTools / BuildSlaveSupport / built-product-archive
index 43adcff..244b811 100644 (file)
@@ -56,7 +56,7 @@ def archiveBuiltProduct(configuration, platform):
     try:
         os.unlink(archiveFile)
     except OSError, e:
-        if e.errno != 17:
+        if e.errno != 2:
             raise
 
     subprocess.call(["ditto", "-c", "-k", "--keepParent", "--sequesterRsrc", configurationBuildDirectory, archiveFile])