Changeset 322:063f421f1b8a
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r263
|
r322
|
|
| 24 | 24 | |
| 25 | 25 | use File::Spec; |
| | 26 | use File::Path qw/remove_tree/; |
| 26 | 27 | use IO::File; |
| 27 | 28 | |
| … |
… |
|
| 100 | 101 | return 0; |
| 101 | 102 | } |
| | 103 | remove_tree $dir if $db->get_config('auth.gpg.cleanup') || 1; |
| 102 | 104 | return !$rv; |
| 103 | 105 | } |