summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2020-06-20 09:10:24 +0200
committerSalvatore Bonaccorso <carnil@debian.org>2020-06-22 10:36:33 +0200
commitdc358ab2e0f6c0fb37dfe74fcc57c0de7c63cfb0 (patch)
tree71eb429ee3d1fb8a6071c12bbc431eba8673d87c /bin
parent52e4c2a7f274f3edfc02225ace8ef46f53accd9d (diff)
add-dsa-needed: Add code comment on intention of package addition
We do this in two steps. In a first step for all supported releases where there is a common package which needs an update (thus after the sorting of the common list and filter out only the duplicated lines) we add those to dsa-needed.txt without suffix to indicate the package needs an update in multiple (supported) suites. In the later step, we only -- for each release -- add pkg/release to dsa-needed.txt to indicate the package needs only an update in the respective release. v2: Fix typo in comment about adding packages with /$release suffix Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/add-dsa-needed.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/add-dsa-needed.sh b/bin/add-dsa-needed.sh
index 59ed247cd0..8aefcba3bf 100755
--- a/bin/add-dsa-needed.sh
+++ b/bin/add-dsa-needed.sh
@@ -87,12 +87,16 @@ for release in $releases; do
done < $tmpd/$release.txt
done
+# Handle packages which need update in multiple releases
+# These are added without /$release suffix
cat $tmpd/toadd-*.txt | sort | uniq -d |
while read pkg; do
printf "%s\n--\n" "$pkg" >> $output
sed -ri "/^$pkg\$/d" $tmpd/toadd-*.txt
done
+# Handle package which need update in distinct releases
+# and that are added with /$release suffix
for release in $releases; do
while read pkg; do
printf "%s/%s\n--\n" "$pkg" "$release" >> $output

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