projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58c5ae
)
Automatically create core-cpan-diff cache dir
author
Florian Ragwitz
<rafl@debian.org>
Tue, 11 Sep 2012 14:06:36 +0000
(10:06 -0400)
committer
Florian Ragwitz
<rafl@debian.org>
Tue, 11 Sep 2012 14:06:36 +0000
(10:06 -0400)
Porting/core-cpan-diff
patch
|
blob
|
history
diff --git
a/Porting/core-cpan-diff
b/Porting/core-cpan-diff
index
54110d8
..
8483e18
100644
(file)
--- a/
Porting/core-cpan-diff
+++ b/
Porting/core-cpan-diff
@@
-155,7
+155,9
@@
sub run {
}
if ( defined $cache_dir ) {
- die "ERROR: no such directory: '$cache_dir'\n" unless -d $cache_dir;
+ die "ERROR: not a directory: '$cache_dir'\n"
+ if !-d $cache_dir && -e $cache_dir;
+ File::Path::mkpath($cache_dir);
}
else {
$cache_dir = File::Temp::tempdir( CLEANUP => 1 );