aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-12-19 13:37:35 +0000
committerOlivier Blin <oblin@mandriva.com>2007-12-19 13:37:35 +0000
commitedf7a7b73596c25d3a6fc822bc84710a3850da5d (patch)
tree7912a4d8238ca3227bf1f2f589298d292819fbe7
parent2b70058e901d15c18c74d7f6606dab40813a92d2 (diff)
downloadmga-youri-core-edf7a7b73596c25d3a6fc822bc84710a3850da5d.tar
mga-youri-core-edf7a7b73596c25d3a6fc822bc84710a3850da5d.tar.gz
mga-youri-core-edf7a7b73596c25d3a6fc822bc84710a3850da5d.tar.bz2
mga-youri-core-edf7a7b73596c25d3a6fc822bc84710a3850da5d.tar.xz
mga-youri-core-edf7a7b73596c25d3a6fc822bc84710a3850da5d.zip
add spuk's debug code for bug 34999
-rw-r--r--lib/Youri/Repository.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Youri/Repository.pm b/lib/Youri/Repository.pm
index cbfbbcb..bbc6178 100644
--- a/lib/Youri/Repository.pm
+++ b/lib/Youri/Repository.pm
@@ -300,8 +300,9 @@ 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;
- print "Looking for files matching $pattern in $root/$path\n"
- if $self->{_verbose} > 1;
+ # debugging for bug 34999
+ print "Looking for files matching $pattern in $root/$path\n";
+# if $self->{_verbose} > 1;
my $grep = "";
$grep = "-regextype posix-egrep -regex '.*\/$pattern'" if ($pattern);
@@ -310,6 +311,8 @@ sub get_files {
# read permission on the *current* dir; as this code is run thru many
# sudo invocations, sometimes the user calling it has $HOME chmoded to
# 0700, making find fail when run as mandrake
+ # debugging for bug 34999
+ print ".. running command: find -L $root/$path $grep -type f\n";
my @files = map { chop; $_; } `cd && find -L $root/$path $grep -type f`;
die "FATAL: get_files(): find failed!" if ($?);