From 4bbb738682ea67070163e72e6fba1a51e18cf5d2 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 4 Dec 2006 20:54:29 +0000 Subject: Fix relative path handling (again) Now iurt should handle all relative and absolute path cases correctly. --- iurt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iurt2 b/iurt2 index 630d567..9e170a7 100755 --- a/iurt2 +++ b/iurt2 @@ -186,7 +186,7 @@ $run{todo} = []; die "FATAL $program_name: $_ not a file or cannot be read\n"; } - if (m,(.*/)([^/]*\.src\.rpm)$,) { + if (m,^(/.*/)([^/]*\.src\.rpm)$,) { ($path, $srpm) = ($1, $2); } elsif (m,([^/]*\.src\.rpm)$,) { ($path, $srpm) = (`pwd`, $1); -- cgit v1.2.1