aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Matsuoka <claudio@mandriva.com>2006-12-04 20:54:29 +0000
committerClaudio Matsuoka <claudio@mandriva.com>2006-12-04 20:54:29 +0000
commit4bbb738682ea67070163e72e6fba1a51e18cf5d2 (patch)
tree576a88a5d21053a208e1ca98a4245bd1672284b4
parentb6b898a159b934805e846975244143a1b8854e73 (diff)
downloadiurt-4bbb738682ea67070163e72e6fba1a51e18cf5d2.tar
iurt-4bbb738682ea67070163e72e6fba1a51e18cf5d2.tar.gz
iurt-4bbb738682ea67070163e72e6fba1a51e18cf5d2.tar.bz2
iurt-4bbb738682ea67070163e72e6fba1a51e18cf5d2.tar.xz
iurt-4bbb738682ea67070163e72e6fba1a51e18cf5d2.zip
Fix relative path handling (again)
Now iurt should handle all relative and absolute path cases correctly.
-rwxr-xr-xiurt22
1 files changed, 1 insertions, 1 deletions
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);