[file-store-4] small script changes

This commit is contained in:
Alexander Machehin 2012-11-14 00:06:49 +06:00
parent 4d58ff5019
commit 53eda3fbf7
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ Dir.glob("*.{tar\.bz2,tar\.gz,bz2,rar,gz,tar,tbz2,tgz,zip,Z,7z,tar\.xz}").uniq.s
end end
end end
sources = (old_sources | new_sources) sources = (old_sources | new_sources)
unless sources.empty? unless new_sources.empty?
File.open(abf_yml, 'w') do |abf| File.open(abf_yml, 'w') do |abf|
abf.puts 'sources:' abf.puts 'sources:'
(old_sources | new_sources).sort.each {|line| abf.puts line} (old_sources | new_sources).sort.each {|line| abf.puts line}

View File

@ -39,7 +39,7 @@ Dir.glob(owners).each do |owner|
end end
if archives_exists if archives_exists
system "git filter-branch -d /dev/shm/git_task --tree-filter \"/home/rosa/git_task/file-store.rb #{token} #{path}\" --prune-empty --tag-name-filter cat -- --all" system "git filter-branch -d /dev/shm/git_task --tree-filter \"/home/rosa/git_task/file-store.rb #{token}\" --prune-empty --tag-name-filter cat -- --all"
##### #####
# This is dangerous !!! # This is dangerous !!!
system "rm -rf #{dest_project_path} && git clone --bare #{path} #{dest_project_path}" system "rm -rf #{dest_project_path} && git clone --bare #{path} #{dest_project_path}"