From 5b3f52e26d53d40c1da454b175c71f4155d5f15c Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Tue, 27 Nov 2007 00:58:38 +0100 Subject: Always prepend / --- lib/LXRng/Repo/Plain.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/LXRng/Repo/Plain.pm b/lib/LXRng/Repo/Plain.pm index c30835e..7e64d3c 100644 --- a/lib/LXRng/Repo/Plain.pm +++ b/lib/LXRng/Repo/Plain.pm @@ -8,6 +8,7 @@ use LXRng::Repo::Plain::Directory; sub new { my ($class, $root) = @_; + $root .= '/' unless $root =~ /\/$/; return bless({root => $root}, $class); } -- cgit v1.2.3