Changeset 322:063f421f1b8a

Show
Ignore:
Timestamp:
08/20/11 17:54:21 (9 months ago)
Author:
Anselm Lingnau <anselm@…>
Branch:
default
Message:

Make Lancelot::Auth::gpg clean up after itself.
The directory with the unpacked message and signature will be deleted after
the signature was checked, except when auth.gpg.cleanup is NOT set (it is
set by default).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lib/Lancelot/Auth/gpg.pm

    r263 r322  
    2424 
    2525use File::Spec; 
     26use File::Path qw/remove_tree/; 
    2627use IO::File; 
    2728 
     
    100101        return 0; 
    101102    } 
     103    remove_tree $dir if $db->get_config('auth.gpg.cleanup') || 1; 
    102104    return !$rv; 
    103105}