[Git][security-tracker-team/security-tracker][master] Allow again removal of package/{old,}stable entries from *-needed list

Salvatore Bonaccorso carnil at debian.org
Sat Sep 28 15:31:04 BST 2019



Salvatore Bonaccorso pushed to branch master at Debian Security Tracker / security-tracker


Commits:
df9dde43 by Salvatore Bonaccorso at 2019-09-28T14:27:11Z
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 at debian.org>

- - - - -


1 changed file:

- bin/gen-DSA


Changes:

=====================================
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



View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/df9dde43b4b097bda704100e3a4146e679ca5606

-- 
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/commit/df9dde43b4b097bda704100e3a4146e679ca5606
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20190928/1b137c9f/attachment-0001.html>


More information about the debian-security-tracker-commits mailing list