[Secure-testing-commits] r21568 - bin
Raphael Geissert
geissert at alioth.debian.org
Sun Mar 10 19:52:59 UTC 2013
Author: geissert
Date: 2013-03-10 19:52:59 +0000 (Sun, 10 Mar 2013)
New Revision: 21568
Modified:
bin/gen-DSA
Log:
Drop leading blank space in CVE and bug numbers list
Additionally, "support" multiple bug numbers by correctly formatting
and generating a list of them.
Modified: bin/gen-DSA
===================================================================
--- bin/gen-DSA 2013-03-10 19:48:34 UTC (rev 21567)
+++ bin/gen-DSA 2013-03-10 19:52:59 UTC (rev 21568)
@@ -55,7 +55,7 @@
}
split_n_sort() {
- printf '%s' "$1" | sed 's/[ ,;]+/ /g' | tr ' ' "\n" | sort -u |
+ printf '%s' "$1" | sed 's/[ ,;]+/ /g;s/^ //' | tr ' ' "\n" | sort -u |
sort -n | tr "\n" ' ' | sed -r 's/\s+/ /g;s/\s$//'
}
@@ -174,6 +174,8 @@
shift
done
+BUGNUM="$(split_n_sort "$BUGNUM")"
+
CVE="$(split_n_sort "$CVE")"
cve_spacing=
More information about the Secure-testing-commits
mailing list