[Pkg-ruby-extras-maintainers] r907 - tools/gemsd
Daigo Moriwaki
daigo-guest at costa.debian.org
Mon Oct 9 06:47:35 UTC 2006
Author: daigo-guest
Date: 2006-10-09 06:47:34 +0000 (Mon, 09 Oct 2006)
New Revision: 907
Modified:
tools/gemsd/convert_gems.rb
tools/gemsd/dh_rubygems.rb
tools/gemsd/download_gems.rb
Log:
Converting is working at my server. http://www.sgtpepper.net/hyspro/diary/20061006.html
Modified: tools/gemsd/convert_gems.rb
===================================================================
--- tools/gemsd/convert_gems.rb 2006-10-07 20:13:00 UTC (rev 906)
+++ tools/gemsd/convert_gems.rb 2006-10-09 06:47:34 UTC (rev 907)
@@ -33,8 +33,10 @@
#
def dput
files = File.join(DIR_SUCCESS, "*.changes")
- unless system "nice dput -f local #{files}"
- exit $?
+ files.each do |file|
+ unless system "nice dput -f debpool #{file}"
+ exit $?
+ end
end
end
Modified: tools/gemsd/dh_rubygems.rb
===================================================================
--- tools/gemsd/dh_rubygems.rb 2006-10-07 20:13:00 UTC (rev 906)
+++ tools/gemsd/dh_rubygems.rb 2006-10-09 06:47:34 UTC (rev 907)
@@ -40,7 +40,7 @@
file = File.join(File.dirname(__FILE__), "debian-specific.yaml")
if File.exists?(file)
yaml = YAML::load_file(file)
- return yaml[gem_name.downcase]
+ return yaml[gem_name.downcase] || {}
else
return {}
end
Modified: tools/gemsd/download_gems.rb
===================================================================
--- tools/gemsd/download_gems.rb 2006-10-07 20:13:00 UTC (rev 906)
+++ tools/gemsd/download_gems.rb 2006-10-09 06:47:34 UTC (rev 907)
@@ -5,7 +5,7 @@
#
# USAGE: $ ./download_gems.rb
#
-# Copyright (C) 2006 Daigo Moriwaki <daigo at debian.org>
+# Copyright (C) 2006 Daigo Moriwaki <daigo at debian dot org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -41,9 +41,13 @@
end
gems.each_value do |spec|
- puts "Downloading #{spec.full_name}..."
- data = rsf.fetch_path("/gems/#{spec.full_name}.gem")
- File.open(File.join(DIR_DOWNLOAD, "#{spec.full_name}.gem"), "w+") {|f| f.write data}
+ puts "Downloading #{spec.full_name} ..."
+ begin
+ data = rsf.fetch_path("/gems/#{spec.full_name}.gem")
+ File.open(File.join(DIR_DOWNLOAD, "#{spec.full_name}.gem"), "w+") {|f| f.write data}
+ rescue OpenURI::HTTPError => e
+ puts "OpenURI::HTTPError #{e}"
+ end
end
end
More information about the pkg-ruby-extras-maintainers
mailing list