Subject: [PATCH 15/25] Treat the absence of a Version field as an empty version

From: Adam D. Barratt <[email-masked]>
Date: Wed, 6 Jan 2010 21:02:11 +0000

---
 lib/Lintian/Schedule.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Lintian/Schedule.pm b/lib/Lintian/Schedule.pm
index 7ffdd4f..5934d6b 100644
--- a/lib/Lintian/Schedule.pm
+++ b/lib/Lintian/Schedule.pm
@@ -55,7 +55,7 @@ sub add_file {
     }
     $pkg  ||= '';
     # "0" is a valid version, so we can't use || here
-    $ver  = '' unless length $ver;
+    $ver  = '' unless defined $ver and length $ver;
     $arch ||= '';
 
     if ( $pkg =~ m,/, ) {
-- 
1.6.6