[releng] make sure the same module/version doesn't appear twice in versions
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [releng] make sure the same module/version doesn't appear twice in versions
- Date: Thu, 16 May 2013 07:52:53 +0000 (UTC)
commit 04ab6c2f6b75b3f4944ba547a8101cb8b7ac52fb
Author: Frédéric Péters <fpeters 0d be>
Date: Thu May 16 09:50:46 2013 +0200
make sure the same module/version doesn't appear twice in versions
This happened with pygobject, that is built twice, a first time for Python 2
and a second time for Python 3.
tools/smoketesting/convert-to-tarballs.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tools/smoketesting/convert-to-tarballs.py b/tools/smoketesting/convert-to-tarballs.py
index 8693a95..155de09 100755
--- a/tools/smoketesting/convert-to-tarballs.py
+++ b/tools/smoketesting/convert-to-tarballs.py
@@ -975,6 +975,7 @@ class ConvertToTarballs:
def create_versions_file(self):
print '**************************************************'
versions = open('versions', 'w')
+ done = {}
for idx in range(len(self.options.release_sets)):
release_set = self.options.release_sets[idx]
if release_set != 'Other':
@@ -994,8 +995,10 @@ class ConvertToTarballs:
subdirs[subdir].append ('%s:%s:%s:%s\n' %
(release_set, real_module, version, subdir))
else:
- versions.write('%s:%s:%s:\n' %
- (release_set, real_module, version))
+ triplet = '%s:%s:%s:\n' % (release_set, real_module, version)
+ if not triplet in done:
+ versions.write(triplet)
+ done[triplet] = True
except:
print 'No version found for %s' % module
subdirs_keys = subdirs.keys()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]