diff options
author | Norbert Preining <preining@logic.at> | 2008-01-08 14:26:59 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-01-08 14:26:59 +0000 |
commit | 1179c10d25c0f164546c28e49437a4cd946aa165 (patch) | |
tree | 9d3cb510aed4336b7e857d156026128b1901a93d /Master/tlpkg | |
parent | 35b2867088f61bd564fdb87f3fff0d75b6e6c74a (diff) |
fixes for spaces in names
git-svn-id: svn://tug.org/texlive/trunk@6140 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg')
-rw-r--r-- | Master/tlpkg/TeXLive/TLUtils.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm index cf8573e9431..60fbc37fb3a 100644 --- a/Master/tlpkg/TeXLive/TLUtils.pm +++ b/Master/tlpkg/TeXLive/TLUtils.pm @@ -654,13 +654,13 @@ sub install_package { my $tarfile = $fn; $tarfile =~ s/\.lzma$//; mkdirhier("$target/temp"); - mysystem("wget -nv -O $target\\temp\\$fn $what"); - mysystem("lzma d $target\\temp\\$fn $target\\temp\\$tarfile"); - mysystem("pushd $target & $bindir\\bsdtar.exe -xf temp\\$tarfile"); + mysystem("wget -nv -O \"$target\\temp\\$fn\" \"$what\""); + mysystem("lzma d \"$target\\temp\\$fn\" \"$target\\temp\\$tarfile\""); + mysystem("pushd \"$target\" & \"$bindir\\bsdtar.exe\" -xf \"temp\\$tarfile\""); unlink("$target\\temp\\$tarfile"); unlink("$target\\temp\\$fn"); } else { - system "wget -nv -O- $what|$lzmadec|tar -xf - -C $target"; + system "wget -nv -O- \"$what\"|\"$lzmadec\"|tar -xf - -C \"$target\""; } } elsif ($what =~ m,\.tar.lzma$,) { if (win32()) { @@ -668,11 +668,11 @@ sub install_package { my $tarfile = $fn; $tarfile =~ s/\.lzma$//; mkdirhier("$target/temp"); - mysystem("$bindir\\lzma.exe d $what $target\\temp\\$tarfile"); - mysystem("pushd $target & $bindir\\bsdtar.exe -xf temp\\$tarfile"); + mysystem("\"$bindir\\lzma.exe\" d \"$what\" \"$target\\temp\\$tarfile\""); + mysystem("pushd \"$target\" & \"$bindir\\bsdtar.exe\" -xf \"temp\\$tarfile\""); unlink("$target\\temp\\$tarfile"); } else { - system "cat $what|$lzmadec|/bin/tar -xf - -C $target"; + system "cat \"$what\"|\"$lzmadec\"|tar -xf - -C \"$target\""; } } else { die "Don't know how to install $what!\n"; |