[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible_pool_buildinfos_suites: use awk in replacement of gawk
Holger Levsen
gitlab at salsa.debian.org
Mon Mar 1 10:56:41 GMT 2021
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
49344dab by Frédéric Pierret (fepitre) at 2021-03-01T11:56:27+01:00
reproducible_pool_buildinfos_suites: use awk in replacement of gawk
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_pool_buildinfos_suites.sh
Changes:
=====================================
bin/reproducible_pool_buildinfos_suites.sh
=====================================
@@ -30,7 +30,7 @@ convert_db_output_to_buildinfo() {
sed -i '/^$/d' "$1"
# We create unfiltered list of predicted buildinfo filenames
cat "$1" | tr -d ' ' | \
- gawk -F'|' -v ARCH="${ARCH}" '{IDX=substr($1,1,1) ; SOURCE=$1; VERSION=gensub(/^.*:/, "", "g", $2); print "/buildinfo-pool/"IDX"/"SOURCE"/"SOURCE"_"VERSION"_"ARCH".buildinfo"}' \
+ awk -F'|' -v ARCH="${ARCH}" '{IDX=substr($1,1,1) ; SOURCE=$1; VERSION=gensub(/^.*:/, "", "g", $2); print "/buildinfo-pool/"IDX"/"SOURCE"/"SOURCE"_"VERSION"_"ARCH".buildinfo"}' \
> "$2"
}
@@ -38,7 +38,7 @@ convert_db_output_to_buildinfo() {
filter_buildinfos() {
# We filter predicted buildinfo filenames if they really exist.
# If not, we report them into a separate .nonexistent file.
- gawk -v buildinfolist="buildinfo-pool_${SUITE}_${ARCH}.list" \
+ awk -v buildinfolist="buildinfo-pool_${SUITE}_${ARCH}.list" \
'FNR==NR { a[$1]; next } { print > ($1 in a ? buildinfolist") }' "$1" "$2"
}
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/49344dab4df3c9684b56dd6b4f134d1dcd3e31d4
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/49344dab4df3c9684b56dd6b4f134d1dcd3e31d4
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/20210301/d61614cd/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list