duplicity: don't shell out to move files

And don't invoke system in such a way that escapes the glob.

Fixes Homebrew/homebrew#10196.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-02-14 23:36:58 -06:00
parent 243f12d12f
commit e37b1c5b28

View file

@ -18,8 +18,8 @@ class Duplicity < Formula
"--install-scripts=#{bin}"
# Shift files around to avoid needing a PYTHONPATH
system "mv", "#{bin}/duplicity", "#{bin}/duplicity.py"
system "mv", "#{bin}/*", libexec
mv bin+'duplicity', bin+'duplicity.py'
mv Dir[bin+'*'], libexec
bin.install_symlink "#{libexec}/duplicity.py" => "duplicity"
bin.install_symlink "#{libexec}/rdiffdir"