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

[SCM] Debian package checker branch, master, updated. 2.5.0-rc2-122-g12888e8



The following commit has been merged in the master branch:
commit 3100041109ccd491c1fad864716400e23893cf7f
Author: Niels Thykier <niels@thykier.net>
Date:   Fri Apr 1 18:05:55 2011 +0200

    Moved the "chdir($LINTIAN_ROOT)" a bit up
    
    This reduces the "scope" of the chdir'ed code

diff --git a/frontend/lintian b/frontend/lintian
index fda7b90..cf7fd08 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1447,6 +1447,14 @@ sub process_package {
     }
     %running_jobs = ();
 
+    # chdir to lintian root directory (to unlock $base so it can be removed below)
+    unless (chdir($LINTIAN_ROOT)) {
+	warning("could not chdir into directory $LINTIAN_ROOT: $!",
+		"skipping $action of $pkg_type package $pkg_name");
+	$exit_code = 2;
+	return 0;
+    }
+
     if ($action eq 'check') {
 	unless ($exit_code) {
 	    my $stats = $TAGS->statistics($pkg_path);
@@ -1459,14 +1467,6 @@ sub process_package {
 	post_pkg_process_overrides($pkg_path);
     }
 
-    # chdir to lintian root directory (to unlock $base so it can be removed below)
-    unless (chdir($LINTIAN_ROOT)) {
-	warning("could not chdir into directory $LINTIAN_ROOT: $!",
-		"skipping $action of $pkg_type package $pkg_name");
-	$exit_code = 2;
-	return 0;
-    }
-
     if (!$keep_lab) {
 	auto_clean_package($lpkg) or $exit_code = 2;
     }

-- 
Debian package checker


Reply to: