diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2020-06-20 09:10:24 +0200 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2020-06-22 10:36:33 +0200 |
commit | 62e46839b0f87d9a65788e92fa6461272eee8315 (patch) | |
tree | d09d1dc27192b5c6256a23e3c0935795aeae0581 /bin/add-dsa-needed.sh | |
parent | d9e06da9a03eca30877a17f03f3f013b3df56328 (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/add-dsa-needed.sh')
-rwxr-xr-x | bin/add-dsa-needed.sh | 4 |
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 |