aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-04-19 13:34:49 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-04-19 13:34:49 -0700
commit32f2b0c4907279d6ddebd15f6f0fea832a80c8d9 (patch)
treee6b7b323328e211b89bc52c9c9d853d7722b448b /gentoo-data.rb
parentAdd PDEPEND support. (diff)
downloadrbot-gentoo-32f2b0c4907279d6ddebd15f6f0fea832a80c8d9.tar.gz
rbot-gentoo-32f2b0c4907279d6ddebd15f6f0fea832a80c8d9.tar.bz2
rbot-gentoo-32f2b0c4907279d6ddebd15f6f0fea832a80c8d9.zip
Fix URL to herds.xml.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'gentoo-data.rb')
-rw-r--r--gentoo-data.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb
index 8749910..bcd245a 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -31,6 +31,7 @@
#GLSA_SRC = "http://www.gentoo.org/security/en/glsa/glsa-@GLSA_ID@.xml?passthru=1"
VALID_PACKAGE_SRC = "/dev/shm/qsearch.txt"
GLSA_SRC = "#{ENV['PORTDIR']}/metadata/glsa/glsa-@GLSA_ID@.xml"
+HERDS_SRC = 'https://api.gentoo.org/packages/herds.xml'
class GentooPlugin < Plugin
Config.register Config::StringValue.new('gentoo.scriptdir',
@@ -126,7 +127,7 @@ class GentooPlugin < Plugin
now = Time.now.tv_sec
unless @@cached['herds'] and @@cached['herds'][0] > now-600
#m.reply "Fetch #{@@cached['herds'][0]} > #{now-600}"
- res = @bot.httputil.get("http://www.gentoo.org/proj/en/metastructure/herds/herds.xml?passthru=1")
+ res = @bot.httputil.get(HERDS_SRC)
herds = REXML::Document.new(res)
@@cached['herds'] = [now, herds]
else