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

[SCM] Debian package checker branch, master, updated. 2.5.10-23-g85b8dce



The following commit has been merged in the master branch:
commit 85b8dcebcc9b08660cb4cbaaa4c1a7087b88c634
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Jul 11 20:16:58 2012 +0200

    lintian: Remove the chdir dance before running checks
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/debian/changelog b/debian/changelog
index a029bf5..04c566c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -48,6 +48,7 @@ lintian (2.5.11) UNRELEASED; urgency=low
 
   * frontend/lintian:
     + [NT] Fix synopsis for --no-cfg option in the help output.
+    + [NT] Remove chdir calls for checks.
 
   * lib/Lintian/Collect{/Source}.pm:
     + [NT] Add optional parameter to field (and X_field)
diff --git a/frontend/lintian b/frontend/lintian
index 9802ff7..396c76d 100755
--- a/frontend/lintian
+++ b/frontend/lintian
@@ -1563,14 +1563,6 @@ sub process_group {
 
         debug_msg(1, "Base directory in lab: $base");
 
-        # chdir to base directory
-        unless (chdir($base)) {
-            warning("could not chdir into directory $base: $!",
-                    "skipping $action of $pkg_type package $pkg_name");
-            $exit_code = 2;
-            next;
-        }
-
         unless ($opt{'no-override'}) {
             if ($collmap->known('override-file') && -f "$base/override") {
                 debug_msg(1, 'Override file collected, loading it ...');
@@ -1600,13 +1592,6 @@ sub process_group {
                 next PROC;
             }
         }
-        # chdir to lintian root directory (to unlock $base so it can be removed below)
-        unless (chdir($opt{'LINTIAN_ROOT'})) {
-            warning("could not chdir into directory $opt{'LINTIAN_ROOT'}: $!",
-                    "skipping $action of $pkg_type package $pkg_name");
-            $exit_code = 2;
-            next;
-        }
 
         unless ($exit_code) {
             my $stats = $TAGS->statistics($pkg_path);

-- 
Debian package checker


Reply to: