Commit 144b3002 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #701 from jam7/refactor/use-tar

Change to use tar for the performance
parents 69c01319 9263f1a9
......@@ -304,13 +304,7 @@ def install_package (pkgdir)
FileUtils.mv 'dlist', CREW_CONFIG_PATH + "meta/#{@pkg.name}.directorylist"
FileUtils.mv 'filelist', CREW_CONFIG_PATH + "meta/#{@pkg.name}.filelist"
File.open(CREW_CONFIG_PATH + "meta/#{@pkg.name}.directorylist").each_line do |line|
system "mkdir", "-p", line.chomp
end
File.open(CREW_CONFIG_PATH + "meta/#{@pkg.name}.filelist").each_line do |line|
system "mv", pkgdir + line.chomp, line.chomp
end
system "tar cf - ./usr/* | (cd /; tar xp --keep-directory-symlink -f -)"
end
end
......
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