[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian rebuilder 'thing': replace dummy function with actual code

Holger Levsen gitlab at salsa.debian.org
Wed Apr 15 14:08:11 BST 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
6a33ab20 by Holger Levsen at 2020-04-15T15:08:01+02:00
reproducible Debian rebuilder 'thing': replace dummy function with actual code

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_debian_rebuilder_prototype.sh


Changes:

=====================================
bin/reproducible_debian_rebuilder_prototype.sh
=====================================
@@ -38,17 +38,22 @@ output_echo(){
 }
 
 set_poolpath() {
-	# FIXME: dedummy this
-	POOLPATH="b"
+	local PKG=$1
+	if [ "${PKG:0:3}" = "lib" ] ; then
+		POOLPATH="${PKG:0:4}"
+	else
+		POOLPATH="${PKG:0:1}"
+	fi
 }
 
-# main
-# basically describe the steps to use debrebuild today...
+#
+# main: this is basically a description of the steps to use debrebuild today...
+#
 PKG='bash'
 VERSION='5.0-6'
 FILE="${PKG}_${VERSION}_amd64.buildinfo"
-POOLPATH="" 	# declared as a global variable
-set_poolpath	# set it properly
+POOLPATH="" 		# declared as a global variable
+set_poolpath $PKG	# so we can set it here with a function
 URLPATH="https://buildinfos.debian.net/buildinfo-pool/$POOLPATH/$PKG"
 
 # hack, should be done better, also with cleanup *after* the job run...



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6a33ab2033feae8fb37510bc4af87aee0cb46de2

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6a33ab2033feae8fb37510bc4af87aee0cb46de2
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200415/279a98f4/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list