diff options
author | Florent Villard <warly@mandriva.com> | 2006-10-12 08:53:02 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2006-10-12 08:53:02 +0000 |
commit | dac4c07159ba71fbb1b51c6ccb7250c91589663c (patch) | |
tree | fa0746f7384dc98689914b2580d6432c0436aaab | |
parent | 7d1d30d2f1d5b0a23a0931a514c8cf9ead916e18 (diff) | |
download | mga-youri-core-dac4c07159ba71fbb1b51c6ccb7250c91589663c.tar mga-youri-core-dac4c07159ba71fbb1b51c6ccb7250c91589663c.tar.gz mga-youri-core-dac4c07159ba71fbb1b51c6ccb7250c91589663c.tar.bz2 mga-youri-core-dac4c07159ba71fbb1b51c6ccb7250c91589663c.tar.xz mga-youri-core-dac4c07159ba71fbb1b51c6ccb7250c91589663c.zip |
initialize root and path to prevent warnings
-rw-r--r-- | lib/Youri/Repository.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Youri/Repository.pm b/lib/Youri/Repository.pm index 9e7ad01..4f28b5e 100644 --- a/lib/Youri/Repository.pm +++ b/lib/Youri/Repository.pm @@ -224,6 +224,8 @@ Get all files found in a directory, using an optional filtering pattern sub get_files { my ($self, $root, $path, $pattern) = @_; croak "Not a class method" unless ref $self; + $root ||= ''; + $path ||= ''; print "Looking for files matching $pattern in $root/$path\n" if $self->{_verbose} > 1; |