[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.3.4-33-g4d7501e



The following commit has been merged in the master branch:
commit 5502652b94492c6220a4f73dc0cdc11b987b0695
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date:   Wed Jan 6 21:55:01 2010 +0000

    Bail out if any file referenced in a .changes does not exist.

diff --git a/lib/Lintian/Schedule.pm b/lib/Lintian/Schedule.pm
index 5934d6b..2ebdece 100644
--- a/lib/Lintian/Schedule.pm
+++ b/lib/Lintian/Schedule.pm
@@ -130,6 +130,12 @@ sub add_changes {
 	next if $_ eq '';
 
 	my ($md5sum,$size,$section,$priority,$file) = split(/\s+/o, $_);
+
+	if (not -f "$arg_dir/$file") {
+	    warning("$file does not exist, exiting");
+	    exit 2;
+	}
+
 	if ($file =~ /\.deb$/) {
 	    $status += $self->add_deb('b', "$arg_dir/$file");
 	} elsif ($file =~ /\.udeb$/) {

-- 
Debian package checker


Reply to: