[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: fixup f359c966, also refactor _common.py accordingly to .csv file change

Holger Levsen holger at layer-acht.org
Wed Nov 9 23:41:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 80f9a49db71525fbf7a44b7f4b1c71f71583bf7a
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Nov 10 00:41:06 2016 +0100

    reproducible Debian: fixup f359c966, also refactor _common.py accordingly to .csv file change
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_common.py | 6 ++++--
 bin/reproducible_common.sh | 6 +++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py
index 04552d1..b23cb0e 100755
--- a/bin/reproducible_common.py
+++ b/bin/reproducible_common.py
@@ -88,11 +88,13 @@ JENKINS_URL = 'https://jenkins.debian.net'
 
 # global package set definitions
 # META_PKGSET[pkgset_id] = (pkgset_name, pkgset_group)
-# csv file columns: (pkgset_id, pkgset_group, pkgset_name)
+# csv file columns: (pkgset_group, pkgset_name)
 META_PKGSET = {}
+pkgset_id = 0
 with open(os.path.join(BIN_PATH, './reproducible_pkgsets.csv'), newline='') as f:
     for line in csv.reader(f):
-        META_PKGSET[int(line[0])] = (line[2], line[1])
+        pkgset_id += 1
+        META_PKGSET[pkgset_id] = (line[1], line[0])
 
 # init the database data and connection
 DB_ENGINE = create_engine("sqlite:///" + REPRODUCIBLE_DB, connect_args={'timeout': 60})
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index cb01bfe..ea88354 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -110,12 +110,12 @@ TABLE[8]=stats_bugs_sin_ftbfs
 TABLE[9]=stats_bugs_sin_ftbfs_state
 
 # package sets defined in meta_pkgsets.csv
-# csv file columns: (pkgset_id, pkgset_group, pkgset_name)
+# csv file columns: (pkgset_group, pkgset_name)
 colindex=0
-while IFS=, read col1 col2 col3
+while IFS=, read col1 col2
 do
 	let colindex+=1
-	META_PKGSET[$colindex]=$col3
+	META_PKGSET[$colindex]=$col2
 done < $BIN_PATH/reproducible_pkgsets.csv
 
 # mustache templates

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list