Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Path-Class CPAN distribution.

Maintainer(s)' notes

I prefer that bugs & patches are filed on GitHub rather than on RT: https://github.com/kenahoo/Path-Class/issues. Thanks.

Report information
The Basics
Id: 15731
Status: resolved
Priority: 0/
Queue: Path-Class

People
Owner: Nobody in particular
Requestors: clkao [...] clkao.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: warning in dir::subsumes
The patch fixes the warning caused by: perl -w -MPath::Class -le 'print dir($ARGV[0])->subsumes(dir($ARGV[1]))' /foo/hate/fnord/sdf /foo/hate/fnord
Only in Path-Class-clkao: Build Only in Path-Class-clkao: _build Only in Path-Class-clkao: blib diff -rpu Path-Class-0.13/lib/Path/Class/Dir.pm Path-Class-clkao/lib/Path/Class/Dir.pm --- Path-Class-0.13/lib/Path/Class/Dir.pm 2005-08-23 04:38:25.000000000 +0100 +++ Path-Class-clkao/lib/Path/Class/Dir.pm 2005-11-12 16:07:13.000000000 +0000 @@ -205,6 +205,7 @@ sub subsumes { my $i = 0; while ($i <= $#{ $self->{dirs} }) { + return 0 unless exists $other->{dirs}[$i]; return 0 if $self->{dirs}[$i] ne $other->{dirs}[$i]; $i++; } Only in Path-Class-clkao/lib/Path/Class: Dir.pm~
Thanks, applied. -Ken