The following commit has been merged in the infra-513663 branch:
commit 3100041109ccd491c1fad864716400e23893cf7f
Author: Niels Thykier <[email protected]>
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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to