Subject: | Failed to copy user data to... error. |
If the first run of my app is done from the package dir where
exists a directory named 'share' which contains my default
configs, I get an "Failed to copy user data to..." error.
For my app this can be easily fixed with the following small patch:
--- lib/File/UserConfig.pm.orig 2012-09-24 15:09:10.269794039 +0300
+++ lib/File/UserConfig.pm 2012-09-24 15:12:29.703551045 +0300
@@ -162,7 +162,7 @@
# If we don't have a sharedir, get it
# from the dist.
- unless ( $self->sharedir ) {
+ unless ( -d $self->sharedir ) {
$self->{sharedir} = File::ShareDir::dist_dir($self-
Show quoted text
>dist);
}
I'd very much appreciate it, if you could apply it to the module,
if you think it is OK to do so.
Thank you, Ştefan Suciu.
Subject: | user_config.patch |
--- lib/File/UserConfig.pm.orig 2012-09-24 15:09:10.269794039 +0300
+++ lib/File/UserConfig.pm 2012-09-24 15:12:29.703551045 +0300
@@ -162,7 +162,7 @@
# If we don't have a sharedir, get it
# from the dist.
- unless ( $self->sharedir ) {
+ unless ( -d $self->sharedir ) {
$self->{sharedir} = File::ShareDir::dist_dir($self->dist);
}