summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2022-01-27 19:07:32 +0100
committerEmilio Pozuelo Monfort <pochu@debian.org>2022-02-01 16:16:50 +0100
commit63516a0cf95e2d6a5b43cfceb44e48c0e0572825 (patch)
treed51c6c4376b4716a559e891a1eccb60cf8b7c784 /bin
parent47e07c9c94709f903d59cb57f1bf8d9668623be3 (diff)
gen-DSA: diff and commit changes to extracvefile
In case we're processing a dist that uses an ExtendFile.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/gen-DSA7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA
index e86a3721db..a78530466b 100755
--- a/bin/gen-DSA
+++ b/bin/gen-DSA
@@ -414,9 +414,12 @@ EOF
echo "$IDMODE text written to ./$IDMODE-$DAID"
if [ "$IDMODE" = "DLA" ] || [ "$IDMODE" = "ELA" ]; then
idmode=$(echo "$IDMODE" | tr A-Z a-z)
+ if [ -n "${DISTS}" ]; then
+ extracvefile=`jq -r ".distributions.${DISTS}.maincvefile" data/config.json`
+ fi
if [ -d .git ]; then
echo "Made the following changes:"
- git diff -- data/$IDMODE/list data/CVE/list $needed_file
+ git diff -- data/$IDMODE/list data/CVE/list $extracvefile $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
@@ -426,7 +429,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 data/CVE/list $needed_file
+ git add data/$IDMODE/list data/CVE/list $extracvefile $needed_file
git commit -m "Reserve $IDMODE-$DAID for $PACKAGE"
git push origin master
fi

© 2014-2024 Faster IT GmbH | imprint | privacy policy