[Git][security-tracker-team/security-tracker][master] Remove lts-auto-eol script
Emilio Pozuelo Monfort (@pochu)
pochu at debian.org
Wed Aug 3 11:17:37 BST 2022
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
b28111bd by Emilio Pozuelo Monfort at 2022-08-03T12:17:10+02:00
Remove lts-auto-eol script
It has little use, is written in perl and not using our current
parsers, and hardcodes stuff making it LTS specific when it
could be more generic.
- - - - -
1 changed file:
- − bin/lts-auto-eol
Changes:
=====================================
bin/lts-auto-eol deleted
=====================================
@@ -1,68 +0,0 @@
-#!/usr/bin/perl
-use File::Copy;
-my $pkg = $ARGV[0];
-shift @ARGV;
-while (my $cve = shift @ARGV) {
- &addEol($pkg, $cve);
-}
-exit;
-
-sub addEol {
- my ($pkg, $cve) = @_;
-# print "Searching for $cve\n";
- # Mode
- # d - default
- # c - cve found
- # p - pkg found
- # e - eol printed, just continue to end of file as we are done
- my $mode = "d";
- open IF, "data/CVE/list";
- open OF, ">data/CVE/list.x";
- while (my $line = <IF>) {
- if ($mode eq "e") {
- print OF $line;
- next;
- }
- if ($mode eq "d") {
- if ($line =~ /$cve\s/) {
-# print " CVE $cve found\n";
- $mode = "c";
- print OF $line;
- next;
- }
- }
- if ($mode eq "c") {
- if ($line =~ /^\s+- $pkg\s/) {
- $mode = "p";
-# print " Package $pkg found\n";
- print OF $line;
- next;
- }
- }
- if ($mode eq "p") {
- if ($line =~ /^\s+\[buster\] - $pkg\s/) {
- $mode = "e";
- print "Existing LTS line found, skipping: $line";
- print OF $line;
- next;
- }
- if ($line =~ /^\s+\[bullseye\] - $pkg\s/ ||
- $line =~ /^\s+\[bookworm\] - $pkg\s/ ||
- $line =~ /^\s+\[trixie\] - $pkg\s/) {
- # skipping through other distribution info
- print OF $line;
- next;
- }
- # End of package entry add EOL
- print "EOL $cve for $pkg added.\n";
- print OF "\t[buster] - $pkg <end-of-life> (No longer supported in LTS buster)\n";
- print OF $line;
- $mode = "e";
- next;
- }
- print OF $line;
- }
- close IF;
- close OF;
- move ("data/CVE/list.x", "data/CVE/list");
-}
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/b28111bdb80e74db722fb8c8e054e68c555dc2f8
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/b28111bdb80e74db722fb8c8e054e68c555dc2f8
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/20220803/2520aa60/attachment-0001.htm>
More information about the debian-security-tracker-commits
mailing list