From 5c6dc12774d2a3a5873d6fadecf8b1d552511931 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kolbj=C3=B8rn=20Barmen?= Date: Fri, 3 Nov 2017 11:14:35 +0100 Subject: [PATCH] debian-updates is not security updates Debian-updates are pending packages between dot-releases, they are not security updates. When Debian has a dot-release, for example 8.7, debian-updates is empty. Between 8.7 and 8.8, updates packages go to debian-updates, and on 8.8, all packages in debian-updates are moved (or replaced) by packages in the main repo, leaving debian-updates empty again. Security updates are managed outside of this. --- lib/facter/apt_updates.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/facter/apt_updates.rb b/lib/facter/apt_updates.rb index f0fa302..89bc37e 100644 --- a/lib/facter/apt_updates.rb +++ b/lib/facter/apt_updates.rb @@ -10,7 +10,6 @@ Facter.add('apt_has_updates') do package = line.gsub(%r{^Inst\s([^\s]+)\s.*}, '\1').strip apt_package_updates[0].push(package) security_matches = [ - %r{ Debian[^\s]+-updates[, ]}, %r{ Debian-Security:}, %r{ Ubuntu[^\s]+-security[, ]}, %r{ gNewSense[^\s]+-security[, ]}, -- 2.32.3