Fix import script. Refs #2261
This commit is contained in:
parent
2bee3bd25d
commit
a3915c2085
|
@ -4,7 +4,7 @@ namespace :import do
|
||||||
desc "Load projects"
|
desc "Load projects"
|
||||||
task :projects => :environment do
|
task :projects => :environment do
|
||||||
open('http://dl.dropbox.com/u/984976/package_list.txt').readlines.each do |name|
|
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
|
# name = name.match(/^([a-z\d_\-\+\.]+?)-(\d[a-z\d\-\.]+)\.src\.rpm$/)[1] # parse
|
||||||
print "Import #{name}..."
|
print "Import #{name}..."
|
||||||
owner = User.find(1) # I am
|
owner = User.find(1) # I am
|
||||||
|
|
Loading…
Reference in New Issue