# Upstream patch to fix detection of the Wheezy 3.2 Linux Kernel. It was
# missdetected as selfbuilt variant.
# Closes: #697330

diff -Naur apt-dater-0.9.0.orig/clients/debian/apt-dater-host apt-dater-0.9.0/clients/debian/apt-dater-host
--- apt-dater-0.9.0.orig/clients/debian/apt-dater-host	2012-05-29 14:18:43.000000000 +0200
+++ apt-dater-0.9.0/clients/debian/apt-dater-host	2013-01-08 19:32:09.520617548 +0100
@@ -337,7 +337,9 @@
 	return;
     }
 
-    unless(`cat /proc/version` =~ /^\S+ \S+ \S+ \(Debian ([^\)]+)\)/) {
+	my $vstr = `cat $verfile`;
+	unless($vstr =~ /^\S+ \S+ \S+ \(Debian ([^\)]+)\)/ ||
+	$vstr =~ /^\S+ \S+ \S+ \(debian-kernel\@lists\.debian\.org\) .+ Debian (\S+)$/) {
 	print "$infostr 2 $version\n";
 	return;
     }
