Fix import script. Refs #2261

This commit is contained in:
Pavel Chipiga 2011-12-05 22:44:38 +02:00
parent 2bee3bd25d
commit a3915c2085
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ namespace :import do
desc "Load projects"
task :projects => :environment do
open('http://dl.dropbox.com/u/984976/package_list.txt').readlines.each do |name|
name.chomp!; # name.downcase!
name.chomp!; name.strip! #; name.downcase!
# name = name.match(/^([a-z\d_\-\+\.]+?)-(\d[a-z\d\-\.]+)\.src\.rpm$/)[1] # parse
print "Import #{name}..."
owner = User.find(1) # I am