diff options
author | Mike Gabriel <sunweaver@debian.org> | 2015-05-29 07:29:47 +0000 |
---|---|---|
committer | Mike Gabriel <sunweaver@debian.org> | 2015-05-29 07:29:47 +0000 |
commit | 104992a3cd4a856fdef88ff46d715ba5a71cd768 (patch) | |
tree | 36076bec3fa47e26372843e763298bebcb722d19 /bin/gen-DSA | |
parent | f207cc6567b1e3cdc8f4310d7024797c58317767 (diff) |
take libxml2, fuse
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@34572 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-x | bin/gen-DSA | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA index 395a8f1a93..1bd262b80c 100755 --- a/bin/gen-DSA +++ b/bin/gen-DSA @@ -157,8 +157,12 @@ PACKAGE="$(tolower "$1")" shift TYPE=security -if [ regression = "$1" ]; then +REGRESSION_DAID= +if printf '%s' "$1" | grep -Eq '^regression(|:[0-9]+(-[0-9]+|))$'; then TYPE=regression + if printf '%s' "$1" | grep -Eq '^regression:([0-9]+(-[0-9]+|))$'; then + REGRESSION_DAID=$(printf '%s' "$1" | sed -r 's/^regression:([0-9]+(-[0-9]+|))/\1/') + fi shift fi @@ -235,7 +239,11 @@ fi if [ -z "$DAID" ]; then if [ "$TYPE" = regression ]; then - latest_daid="$(sed -nr '/'"$IDMODE"'-[0-9]+-[0-9]+'" $PACKAGE "'/{s/^.+'"$IDMODE"'-[0]*([0-9-]+).*$/\1/;p;q}' data/$IDMODE/list)" + if [ -z "$REGRESSION_DAID" ]; then + latest_daid="$(sed -nr '/'"$IDMODE"'-[0-9]+-[0-9]+'" $PACKAGE "'/{s/^.+'"$IDMODE"'-[0]*([0-9-]+).*$/\1/;p;q}' data/$IDMODE/list)" + else + latest_daid="$REGRESSION_DAID" + fi revision=${latest_daid#*-} daid=${latest_daid%-*} else |