[SCM] Debian package checker branch, master, updated. 2.3.4-50-g7610c46
The following commit has been merged in the master branch:
commit 3ada7264fc5094adfeabc550c426350fc32f5d30
Author: Raphael Geissert <atomo64@gmail.com>
Date: Tue Mar 2 11:21:08 2010 -0600
Remove some duplicated code
diff --git a/frontend/lintian b/frontend/lintian
index c4d9a55..4b98001 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1280,6 +1280,14 @@ foreach my $pkg_info ($schedule->get_all) {
my $info = Lintian::Collect->new($pkg, $long_type);
my $loaded_overrides = 0;
+ # chdir to base directory
+ unless (chdir($base)) {
+ warning("could not chdir into directory $base: $!",
+ "skipping $action of $long_type package $pkg");
+ $exit_code = 2;
+ next PACKAGE;
+ }
+
while ($map->pending) {
foreach my $req (sort sort_coll $map->selectable) {
my $ri = $map->getProp($req);
@@ -1310,14 +1318,6 @@ foreach my $pkg_info ($schedule->get_all) {
}
closedir(BASE);
- # chdir to base directory
- unless (chdir($base)) {
- warning("could not chdir into directory $base: $!",
- "skipping $action of $long_type package $pkg");
- $exit_code = 2;
- next PACKAGE;
- }
-
# collect info
$map->select($req);
remove_status_file($base);
@@ -1342,14 +1342,6 @@ foreach my $pkg_info ($schedule->get_all) {
next;
}
- # chdir to base directory
- unless (chdir($base)) {
- warning("could not chdir into directory $base: $!",
- "skipping $action of $long_type package $pkg");
- $exit_code = 2;
- next PACKAGE;
- }
-
debug_msg(1, "Running check: $check ...");
my $returnvalue = Checker::runcheck($pkg, $long_type, $info, $check);
# Set exit_code correctly if there was not yet an exit code
--
Debian package checker
Reply to: