[releng] convert-to-tarballs: Remove versions file before reporting fatal error



commit a3a8f16cfa7f4fcabda2343411eaa2903814566d
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Apr 16 20:47:25 2018 -0500

    convert-to-tarballs: Remove versions file before reporting fatal error
    
    I don't want to rewrite this code to move the fatal error up before the
    versions file is created, so just remove it. It's really confusing for
    the script to succeed after reporting that it failed. This avoids that.

 tools/smoketesting/convert-to-tarballs.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 12ab236..ef5bfc0 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -756,6 +756,7 @@ class ConvertToTarballs:
                                 done[triplet] = True
                     except:
                         print 'FATAL: module %s missing from BuildStream projects' % module
+                        os.remove('versions')
                         sys.exit(1)
                 subdirs_keys = subdirs.keys()
                 subdirs_keys.sort ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]