summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOla Lundqvist <ola@inguza.com>2022-07-11 23:17:56 +0200
committerOla Lundqvist <ola@inguza.com>2022-07-11 23:23:48 +0200
commit021ec750b67591cdffc4d807f470771cc41ee59b (patch)
tree33acf7934cf63ff6a437309ca801d6b5081cd9bb /bin
parent583663396fc9650aeee8268259c04673b3cde231 (diff)
One correction to the eol bulk add script. Also simplified the output to make it less verbose.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lts-auto-eol22
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/lts-auto-eol b/bin/lts-auto-eol
index 51d46e9ae5..3ae392d64e 100755
--- a/bin/lts-auto-eol
+++ b/bin/lts-auto-eol
@@ -9,7 +9,7 @@ exit;
sub addEol {
my ($pkg, $cve) = @_;
- print "Searching for $cve\n";
+# print "Searching for $cve\n";
# Mode
# d - default
# c - cve found
@@ -25,7 +25,7 @@ sub addEol {
}
if ($mode eq "d") {
if ($line =~ /$cve\s/) {
- print " CVE $cve found\n";
+# print " CVE $cve found\n";
$mode = "c";
print OF $line;
next;
@@ -34,7 +34,7 @@ sub addEol {
if ($mode eq "c") {
if ($line =~ /^\s+- $pkg\s/) {
$mode = "p";
- print " Package $pkg found\n";
+# print " Package $pkg found\n";
print OF $line;
next;
}
@@ -42,19 +42,19 @@ sub addEol {
if ($mode eq "p") {
if ($line =~ /^\s+\[buster\] - $pkg\s/) {
$mode = "e";
- print " Existing LTS line found, skipping: $line";
+ print "Existing LTS line found, skipping: $line";
print OF $line;
next;
}
- foreach my $rel ("bullseye", "bookworm", "trixie") {
- if ($line =~ /^\s+\[$rel\] - $pkg\s/) {
- # skipping through other distribution info
- 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 "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";

© 2014-2024 Faster IT GmbH | imprint | privacy policy