From dc358ab2e0f6c0fb37dfe74fcc57c0de7c63cfb0 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Sat, 20 Jun 2020 09:10:24 +0200 Subject: 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 --- bin/add-dsa-needed.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3