#29: removed "iconv" library
This commit is contained in:
parent
29eed84f7d
commit
2ff478dc0d
|
@ -1,6 +1,5 @@
|
||||||
require 'highline/import'
|
require 'highline/import'
|
||||||
require 'open-uri'
|
require 'open-uri'
|
||||||
require 'iconv'
|
|
||||||
|
|
||||||
namespace :import do
|
namespace :import do
|
||||||
desc "Load projects"
|
desc "Load projects"
|
||||||
|
@ -59,7 +58,7 @@ namespace :import do
|
||||||
print "Add project '#{project.name_with_owner}' to '#{platform.name}/#{repo.name}' OK."
|
print "Add project '#{project.name_with_owner}' to '#{platform.name}/#{repo.name}' OK."
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
description = ::Iconv.conv('UTF-8//IGNORE', 'UTF-8', `rpm -q --qf '[%{Description}]' -p #{srpm_file}`)
|
description = `rpm -q --qf '[%{Description}]' -p #{srpm_file}`
|
||||||
project = Project.create!(:name => name, :description => description) {|p| p.owner = owner}
|
project = Project.create!(:name => name, :description => description) {|p| p.owner = owner}
|
||||||
repo.projects << project
|
repo.projects << project
|
||||||
print "Create project #{project.name_with_owner} in #{platform.name}/#{repo.name} OK."
|
print "Create project #{project.name_with_owner} in #{platform.name}/#{repo.name} OK."
|
||||||
|
@ -133,7 +132,7 @@ namespace :import do
|
||||||
repository.projects << project
|
repository.projects << project
|
||||||
print "Add project #{project.name_with_owner} to #{platform.name}/#{repository.name}. "
|
print "Add project #{project.name_with_owner} to #{platform.name}/#{repository.name}. "
|
||||||
else
|
else
|
||||||
description = ::Iconv.conv('UTF-8//IGNORE', 'UTF-8', `rpm -q --qf '[%{Description}]' -p #{srpm_file}`)
|
description = `rpm -q --qf '[%{Description}]' -p #{srpm_file}`
|
||||||
project = Project.create!(:name => name, :description => description) {|p| p.owner = owner}
|
project = Project.create!(:name => name, :description => description) {|p| p.owner = owner}
|
||||||
repository.projects << project
|
repository.projects << project
|
||||||
print "Create project #{project.name_with_owner} at #{platform.name}/#{repository.name}. "
|
print "Create project #{project.name_with_owner} at #{platform.name}/#{repository.name}. "
|
||||||
|
|
Loading…
Reference in New Issue