diff options
author | Salvatore Bonaccorso <carnil@debian.org> | 2019-09-28 16:13:19 +0200 |
---|---|---|
committer | Salvatore Bonaccorso <carnil@debian.org> | 2019-09-28 16:27:11 +0200 |
commit | b05e71d12667d9ae6015e198b770b149bfbff1fd (patch) | |
tree | b13c12203c68bc4acf9d559cd35c8f0ac5a52790 /bin/gen-DSA | |
parent | a93a5024259389b1af92a1b72d586c61b6fd8d17 (diff) |
Allow again removal of package/{old,}stable entries from *-needed list
Since the regular expression was tightened to fix a bug and not remove
e.g. spice ans spice-gtk from a *-needed.list removal of specific
entries of packages/stable or packages/oldstable got broken (wich is
used by the Debian security team to mark entries which only need an
update in one of the supported suites).
Retain the desired fixed behaviour but try to allow to properly remove
package/{old,}stable entries again.
Fixes: b3070631dfbb ("bin/gen-DSA: Fix package removal from the needed_file. Don't remove packages starting with the same string as the to be removed package.")
Signed-off-by: Salvatore Bonaccorso <carnil@debian.org>
Diffstat (limited to 'bin/gen-DSA')
-rwxr-xr-x | bin/gen-DSA | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gen-DSA b/bin/gen-DSA index 7295ac8f70..3b73dfbaaa 100755 --- a/bin/gen-DSA +++ b/bin/gen-DSA @@ -386,7 +386,7 @@ EOF cat $daid_entry data/$IDMODE/list > $tmp_list cat $tmp_list > data/$IDMODE/list rm -f $tmp_list - sed -rn '/^'"$PACKAGE"'(\s.*|$)\b/{: next;n;/^\s/b next;d};p' $needed_file > $needed_file.new + sed -rn '/^'"$PACKAGE"'(\/\w+)?(\s.*|$)\b/{: next;n;/^\s/b next;d};p' $needed_file > $needed_file.new mv $needed_file.new $needed_file echo "$IDMODE text written to ./$IDMODE-$DAID" if [ "$IDMODE" = "DLA" ] || [ "$IDMODE" = "ELA" ]; then |