Commit f51b3fb1 authored by Chris Thurber's avatar Chris Thurber Committed by GitHub

Merge pull request #2964 from uberhacker/fix-crew-Dir

Add ? to Dir.exists in crew
parents ea2382b3 9c393fc5
......@@ -584,13 +584,13 @@ def install_package (pkgdir)
strip_find_files "find . -type f ! -iname '*\.bz2' ! -iname '*\.gz' ! -iname '*\.lha' ! -iname '*\.lz' ! -iname '*\.rar' ! -iname '*\.tar' ! -iname '*\.tgz' ! -iname '*\.xz' ! -iname '*\.zip' -perm /111 -print | sed -e '/lib.*\.a$/d' -e '/lib.*\.so/d'"
if @opt_verbose then
if Dir.exists "#{pkgdir}/home" then
if Dir.exists? "#{pkgdir}/home" then
system "tar cvf - ./usr/* ./home/* | (cd /; tar xp --keep-directory-symlink -f -)"
else
system "tar cvf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
end
else
if Dir.exists "#{pkgdir}/home" then
if Dir.exists? "#{pkgdir}/home" then
system "tar cf - ./usr/* ./home/* | (cd /; tar xp --keep-directory-symlink -f -)"
else
system "tar cf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment