Package: apt-dater-host / 1.0.1-3

01-jessie-kernel-detection.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Fix Linux Kernel status detection with newer Debian jessie kernel images.
# Closes: #794630

diff -Naur apt-dater-host-1.0.0.orig/dpkg/apt-dater-host apt-dater-host-1.0.0/dpkg/apt-dater-host
--- apt-dater-host-1.0.0.orig/dpkg/apt-dater-host	2014-09-24 23:05:00.000000000 +0200
+++ apt-dater-host-1.0.0/dpkg/apt-dater-host	2015-09-22 09:54:39.688185200 +0200
@@ -368,7 +368,7 @@
     else {
       my $vstr = `cat $verfile`;
       unless($vstr =~ /^\S+ \S+ \S+ \(Debian ([^\)]+)\)/ ||
-             $vstr =~ /^\S+ \S+ \S+ \(debian-kernel\@lists\.debian\.org\) .+ Debian (\S+)$/) {
+             $vstr =~ /^\S+ \S+ \S+ \(debian-kernel\@lists\.debian\.org\) .+ Debian (\S+)(?: \(\d{4}-\d\d-\d\d\))?$/) {
           print "$infostr 2 $version\n";
           return;
       }
@@ -376,7 +376,7 @@
     }
 
     my $reboot = 0;
-    unless(open(HDPKG, "dpkg-query -W -f='\${Version} \${Status;20} \${Maintainer} \${Provides}\n' 'linux-image*'|grep -E 'install ok installed (Debian|Ubuntu) Kernel Team'|grep linux-image|")) {
+	unless(open(HDPKG, "dpkg-query -W -f='\${Version} \${Status;20} \${Maintainer} \${Provides}\n' 'linux-image*'|")) {
 	print "$infostr 9 $version\n";
 	return;
     }