From 8c7de1139db31314694cc5218a1cf93337f16ac2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 10 Dec 2009 17:29:50 -0500 Subject: [PATCH] Avoid using abs_path to determine canonical repo path, as that fails when the repo has not yet been checked out. --- debian/changelog | 7 +++++++ mr | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4d07a62..8ba4159 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mr (0.46) unstable; urgency=low + + * Avoid using abs_path to determine canonical repo path, as that fails + when the repo has not yet been checked out. + + -- Joey Hess Thu, 10 Dec 2009 17:28:26 -0500 + mr (0.45) unstable; urgency=low * Fix pod error. Closes: #558012 diff --git a/mr b/mr index b5d5c11..1a57570 100755 --- a/mr +++ b/mr @@ -791,7 +791,9 @@ sub repodir { my $repo=shift; my $topdir=$repo->{topdir}; my $subdir=$repo->{subdir}; - return abs_path(($subdir =~/^\//) ? $subdir : $topdir.$subdir); + my $ret=($subdir =~/^\//) ? $subdir : $topdir.$subdir; + $ret=~s/\/\.$//; + return $ret; } # figure out which repos to act on -- 2.39.2