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

[SCM] Debian package checker branch, master, updated. 2.5.4-149-g96d6849



The following commit has been merged in the master branch:
commit c4c9ecd5ed04a66f6cc42d4c301dcb92b65d9a6e
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Feb 4 17:42:16 2012 +0100

    Lab: Fix tempdir invocation and extended the tempdir template
    
    Fix the call of tempdir in L::Lab::create so it actually receives the
    options passed to it.  Also extended the randomizable part of the
    template to 10 (from 6).
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/lib/Lintian/Lab.pm b/lib/Lintian/Lab.pm
index 4101714..7721986 100644
--- a/lib/Lintian/Lab.pm
+++ b/lib/Lintian/Lab.pm
@@ -554,8 +554,8 @@ sub create {
     if ( !$dir or $self->is_temp) {
         if ($self->is_temp) {
             my $keep = $opts->{'keep-lab'}//0;
-            my $topts = { CLEAN => !$keep, TMPDIR => 1 };
-            my $t = tempdir ('temp-lintian-lab-XXXXXX', $topts);
+            my %topts = ( 'CLEANUP' => !$keep, 'TMPDIR' => 1 );
+            my $t = tempdir ('temp-lintian-lab-XXXXXXXXXX', %topts);
             $dir = Cwd::abs_path ($t);
             croak "Could not resolve $t: $!" unless $dir;
             $self->{'dir'} = $dir;

-- 
Debian package checker


Reply to: