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

[lintian] 01/01: harness: Only log about removal of old lab if it exists



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 9eae0bf367e28c98c4ccde7f78a37ac69c61ce31
Author: Niels Thykier <niels@thykier.net>
Date:   Wed Feb 25 19:08:42 2015 +0100

    harness: Only log about removal of old lab if it exists
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 reporting/harness | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/reporting/harness b/reporting/harness
index 5379c07..81e96f3 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -194,8 +194,10 @@ if (not $opt{'dry-run'}) {
         $LAB->create({ 'mode' => 02775}) unless $LAB->exists;
     } elsif ($LINTIAN_LAB) {
         my $LAB = Lintian::Lab->new($LINTIAN_LAB);
-        Log("Removing old permanent lab at $LINTIAN_LAB");
-        $LAB->remove if $LAB->exists;
+        if ($LAB->exists) {
+            Log("Removing old permanent lab at $LINTIAN_LAB");
+            $LAB->remove;
+        }
     }
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: