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 | f081d3a63226ee086f804b2ee975155e0b8e2fbc (patch) | |
tree | ed2e5b5259b3b530883ce3ef8fe9fb08de8c3499 /bin/gen-DSA | |
parent | fc36bc733de3d773b5774e0a5df5653ad116a493 (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 |