diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2021-11-06 22:06:25 +0100 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2021-11-06 22:06:25 +0100 |
commit | 6c6a534ca1859efad217d3f09e00bcbca3ded41e (patch) | |
tree | 3dd433abda2842551a510d8dc150fec2dc1ab626 /bin/gen-DSA | |
parent | b4f9e5787e657f52767b6170517a1447141721e9 (diff) |
gen-DSA: Hanlde CVE list in DLA/ELA mode as well
The recent addition of the remove-cve-dist-tags hook in gen-D[SL]A
script removes entries from data/CVE/list when they had a no-dsa (or
it's substates) which are handled in the update.
When gen-DSA script is invoked in DLA mode though, there is a mechanism
to automatically commit the changes (and option to push) but that did
not take into account the changes in data/CVE/list.
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-x | bin/gen-DSA | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA index 781d4250cc..0fd013d1e4 100755 --- a/bin/gen-DSA +++ b/bin/gen-DSA @@ -412,7 +412,7 @@ EOF idmode=$(echo "$IDMODE" | tr A-Z a-z) if [ -d .git ]; then echo "Made the following changes:" - git diff -- data/$IDMODE/list $needed_file + git diff -- data/$IDMODE/list data/CVE/list $needed_file if ! git diff-index --name-only HEAD -- $needed_file | grep -qs . && [ $TYPE = security ]; then warn "did not make any changes to $needed_file - this may indicate duplicate work or misspelled package name" fi @@ -422,7 +422,7 @@ EOF echo -n "Do you want to commit and push them now ? [Yn] " read reply if [ "$reply" = "Y" ] || [ "$reply" = "" ] || [ "$reply" = "y" ]; then - git add data/$IDMODE/list $needed_file + git add data/$IDMODE/list data/CVE/list $needed_file git commit -m "Reserve $IDMODE-$DAID for $PACKAGE" git push origin master fi |