public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/, /
Date: Sun, 19 Apr 2015 20:35:15 +0000 (UTC)	[thread overview]
Message-ID: <1429475689.32f2b0c4907279d6ddebd15f6f0fea832a80c8d9.robbat2@gentoo> (raw)

commit:     32f2b0c4907279d6ddebd15f6f0fea832a80c8d9
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 19 20:34:49 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Apr 19 20:34:49 2015 +0000
URL:        https://gitweb.gentoo.org/proj/rbot-gentoo.git/commit/?id=32f2b0c4

Fix URL to herds.xml.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 gentoo-data.rb          | 3 ++-
 gentoo-scripts/herds.sh | 3 ++-
 2 files changed, 4 insertions(+), 2 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

diff --git a/gentoo-scripts/herds.sh b/gentoo-scripts/herds.sh
index 510f233..3cba717 100644
--- a/gentoo-scripts/herds.sh
+++ b/gentoo-scripts/herds.sh
@@ -1,4 +1,5 @@
-wget -O herds.xml -q 'http://www.gentoo.org/proj/en/metastructure/herds/herds.xml?passthru=1'
+HERDS_SRC='https://api.gentoo.org/packages/herds.xml'
+wget -O herds.xml -q "${HERDS_SRC}"
 if [ ! -s herds.xml ]; then
 	cp /usr/portage/metadata/herds.xml .
 fi


                 reply	other threads:[~2015-04-19 20:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1429475689.32f2b0c4907279d6ddebd15f6f0fea832a80c8d9.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox