[gentoo-commits] sites/www:master commit in: bin/

2017-07-27 Thread Matthew Marchese
commit: 7eff9a24227f6375b55d387771a563a7f4e17dec
Author: Matthew Marchese  gentoo  org>
AuthorDate: Thu Jul 27 20:48:53 2017 +
Commit: Matthew Marchese  gentoo  org>
CommitDate: Fri Jul 28 03:54:05 2017 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=7eff9a24

Make scripts have consistent output.

Signed-off-by: Matthew Marchese  gentoo.org>

 bin/update-downloads.sh | 6 +++---
 bin/update-packages.sh  | 2 +-
 bin/update-wiki.sh  | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bin/update-downloads.sh b/bin/update-downloads.sh
index b113fdb..6d618e4 100755
--- a/bin/update-downloads.sh
+++ b/bin/update-downloads.sh
@@ -70,12 +70,12 @@ main() {
   cd "$(dirname "$0")"/..
 
   local arch
-  printf 'Updating downloads... '
+  printf 'Updating downloads'
   for arch in "${ARCHES[@]}"; do
-printf '%s ' "${arch}"
+printf ' %s' "${arch}"
 update_arch "${arch}"
   done
-  echo 'done.'
+  echo '...done.'
 }
 
 main "$@"

diff --git a/bin/update-packages.sh b/bin/update-packages.sh
index 8a267a2..13b89c5 100755
--- a/bin/update-packages.sh
+++ b/bin/update-packages.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-echo -n 'Updating Packages information...'
+echo -n 'Updating packages information...'
 timeout 60 wget -T 60 'https://packages.gentoo.org/packages/added.atom' -O 
_data/packages.xml.tmp 2>/dev/null
 [ $? -eq 0 ] && mv _data/packages.xml.tmp _data/packages.xml
 echo 'done.'

diff --git a/bin/update-wiki.sh b/bin/update-wiki.sh
index 76196df..1d13235 100755
--- a/bin/update-wiki.sh
+++ b/bin/update-wiki.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-echo -n 'Updating Wiki information...'
+echo -n 'Updating wiki information...'
 wget -T 60 
'https://wiki.gentoo.org/index.php?title=Special:NewPages&feed=rss&hidebots=1&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter='
 -O _data/wiki.xml.tmp 2>/dev/null
 [ $? -eq 0 ] && mv _data/wiki.xml.tmp _data/wiki.xml
 echo 'done.'



[gentoo-commits] sites/www:master commit in: bin/

2017-07-27 Thread Matthew Marchese
commit: cdacc9aaf60c8a4cea9500b81db6e57a75c0791d
Author: Matthew Marchese  gentoo  org>
AuthorDate: Thu Jul 27 20:44:38 2017 +
Commit: Matthew Marchese  gentoo  org>
CommitDate: Fri Jul 28 03:53:39 2017 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=cdacc9aa

Use HTTPS for planet RSS feed download.

Signed-off-by: Matthew Marchese  gentoo.org>

 bin/update-planet.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/update-planet.sh b/bin/update-planet.sh
index 5a410cb..46a9a3c 100755
--- a/bin/update-planet.sh
+++ b/bin/update-planet.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating Planet information...'
-timeout 120 wget -T 60 'http://planet.gentoo.org/rss20.xml' -O 
_data/planet.xml.tmp 2>/dev/null
+timeout 120 wget -T 60 'https://planet.gentoo.org/rss20.xml' -O 
_data/planet.xml.tmp 2>/dev/null
 [ $? -eq 0 ] && mv _data/planet.xml.tmp _data/planet.xml
 echo 'done.'



[gentoo-commits] sites/www:master commit in: bin/

2017-02-18 Thread Robin H. Johnson
commit: cbf09605f5b37e9d7aed3e6546a748bf63ed7688
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Sun Feb 19 00:46:37 2017 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Sun Feb 19 00:46:37 2017 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=cbf09605

bin/update-packages: add more timeout, as still seems to sometimes hang.

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

 bin/update-packages.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/update-packages.sh b/bin/update-packages.sh
index b2577bd..8a267a2 100755
--- a/bin/update-packages.sh
+++ b/bin/update-packages.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating Packages information...'
-wget -T 60 'https://packages.gentoo.org/packages/added.atom' -O 
_data/packages.xml.tmp 2>/dev/null
+timeout 60 wget -T 60 'https://packages.gentoo.org/packages/added.atom' -O 
_data/packages.xml.tmp 2>/dev/null
 [ $? -eq 0 ] && mv _data/packages.xml.tmp _data/packages.xml
 echo 'done.'



[gentoo-commits] sites/www:master commit in: bin/

2016-07-17 Thread Robin H. Johnson
commit: 79e8bf3316fe2977a52e6bb8ee9de6d2aaa1583c
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Mon Jul 18 06:22:33 2016 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Mon Jul 18 06:22:43 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=79e8bf33

update-planet: wget -T timeout does not fire in some cases.

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

 bin/update-planet.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/update-planet.sh b/bin/update-planet.sh
index e15571d..5a410cb 100755
--- a/bin/update-planet.sh
+++ b/bin/update-planet.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating Planet information...'
-wget -T 60 'http://planet.gentoo.org/rss20.xml' -O _data/planet.xml.tmp 
2>/dev/null
+timeout 120 wget -T 60 'http://planet.gentoo.org/rss20.xml' -O 
_data/planet.xml.tmp 2>/dev/null
 [ $? -eq 0 ] && mv _data/planet.xml.tmp _data/planet.xml
 echo 'done.'



[gentoo-commits] sites/www:master commit in: bin/

2016-05-27 Thread Alex Legler
commit: dcaba6a3d14c9ec4b6424c304ddd7e99aec71235
Author: Alex Legler  a3li  li>
AuthorDate: Fri May 27 12:00:23 2016 +
Commit: Alex Legler  gentoo  org>
CommitDate: Fri May 27 12:00:45 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=dcaba6a3

Whitespace

 bin/update-downloads.sh | 77 +
 1 file changed, 39 insertions(+), 38 deletions(-)

diff --git a/bin/update-downloads.sh b/bin/update-downloads.sh
index 3b0b894..b113fdb 100755
--- a/bin/update-downloads.sh
+++ b/bin/update-downloads.sh
@@ -6,75 +6,76 @@ URI_BASE="http://distfiles.gentoo.org/releases";
 ARCHES=(alpha amd64 arm hppa ia64 mips ppc s390 sh sparc x86)
 
 usage() {
-   cat >"${list}" "${uri_base}/${file}"
-   done
+  local list=$1 file
+  shift
+  for file in "$@"; do
+fetch -O - >>"${list}" "${uri_base}/${file}"
+  done
 }
 
 update_amd64() {
-   append_list "${boot_list}" "latest-admincd-amd64.txt"
+  append_list "${boot_list}" "latest-admincd-amd64.txt"
 }
 
 update_hppa() {
-   append_list "${boot_list}" latest-netboot-hppa{32,64}.txt
+  append_list "${boot_list}" latest-netboot-hppa{32,64}.txt
 }
 
 update_s390() {
-   append_list "${boot_list}" 
latest-netboot-s390{,x}-{initramfs,kernel}.txt
+  append_list "${boot_list}" latest-netboot-s390{,x}-{initramfs,kernel}.txt
 }
 
 update_x86() {
-   append_list "${boot_list}" "latest-admincd-x86.txt"
+  append_list "${boot_list}" "latest-admincd-x86.txt"
 }
 
 # Update the bootable & stage lists.
 update_arch() {
-   local arch=$1
-   local uri_base="${URI_BASE}/${arch}/autobuilds"
-   local list_base="_data/downloads/${arch}"
-   local boot_list="${list_base}/iso.txt"
-   local stage_list="${list_base}/stage3.txt"
-
-   mkdir -p "${list_base}"
-   fetch "${uri_base}/latest-iso.txt" -O "${boot_list}"
-   fetch "${uri_base}/latest-stage3.txt" -O "${stage_list}"
-   if [[ $(type -t "update_${arch}") == "function" ]] ; then
-   update_${arch}
-   fi
+  local arch=$1
+  local uri_base="${URI_BASE}/${arch}/autobuilds"
+  local list_base="_data/downloads/${arch}"
+  local boot_list="${list_base}/iso.txt"
+  local stage_list="${list_base}/stage3.txt"
+
+  mkdir -p "${list_base}"
+  fetch "${uri_base}/latest-iso.txt" -O "${boot_list}"
+  fetch "${uri_base}/latest-stage3.txt" -O "${stage_list}"
+  if [[ $(type -t "update_${arch}") == "function" ]]; then
+update_${arch}
+  fi
 }
 
 main() {
-   if [[ $# -ne 0 ]] ; then
-   usage
-   fi
-
-   # Make sure we're in the top level dir.
-   cd "$(dirname "$0")"/..
-
-   local arch
-   printf 'Updating ... '
-   for arch in "${ARCHES[@]}" ; do
-   printf '%s ' "${arch}"
-   update_arch "${arch}"
-   done
-   echo '... done'
+  if [[ $# -ne 0 ]]; then
+usage
+  fi
+
+  # Make sure we're in the top level dir.
+  cd "$(dirname "$0")"/..
+
+  local arch
+  printf 'Updating downloads... '
+  for arch in "${ARCHES[@]}"; do
+printf '%s ' "${arch}"
+update_arch "${arch}"
+  done
+  echo 'done.'
 }
+
 main "$@"



[gentoo-commits] sites/www:master commit in: bin/

2016-05-27 Thread Alex Legler
commit: 4af8d661243e0da0b17210a8ddd788a92b19d19b
Author: Mike Frysinger  gentoo  org>
AuthorDate: Thu May 26 18:11:34 2016 +
Commit: Alex Legler  gentoo  org>
CommitDate: Fri May 27 11:55:37 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=4af8d661

update-downloads: rewrite to make it easier to manage

This also adds hppa netboot images to the list.

 bin/update-downloads.sh | 98 ++---
 1 file changed, 77 insertions(+), 21 deletions(-)

diff --git a/bin/update-downloads.sh b/bin/update-downloads.sh
index 8dea718..3b0b894 100755
--- a/bin/update-downloads.sh
+++ b/bin/update-downloads.sh
@@ -1,24 +1,80 @@
 #!/bin/bash
-ARCHES=(amd64 x86 alpha arm hppa ia64 mips ppc s390 sh sparc)
+# TODO: fix this handling for temp files and if one of the downloads fails but 
not others.
 
-echo -n 'Updating downloads...'
+URI_BASE="http://distfiles.gentoo.org/releases";
 
-# TODO: fix this handling for temp files and if one of the downloads fails but 
not others.
-for arch in "${ARCHES[@]}"; do
-  mkdir -p _data/downloads/${arch}/
-  wget -T 60 
"http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-iso.txt"; -O 
_data/downloads/${arch}/iso.txt 2>/dev/null
-  wget -T 60 
"http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-stage3.txt"; -O 
_data/downloads/${arch}/stage3.txt 2>/dev/null
-
-  if [ ${arch} = "amd64" ]; then
-wget -T 60 
"http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-admincd-amd64.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-  elif [ ${arch} = "s390" ]; then
-wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390-initramfs.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390-kernel.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390x-initramfs.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390x-kernel.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-  elif [ ${arch} = "x86" ]; then
-wget -T 60 
"http://distfiles.gentoo.org/releases/x86/autobuilds/latest-admincd-x86.txt"; -O 
- >> _data/downloads/${arch}/iso.txt 2>/dev/null
-  fi
-done
-
-echo 'done.'
+ARCHES=(alpha amd64 arm hppa ia64 mips ppc s390 sh sparc x86)
+
+usage() {
+   cat >"${list}" "${uri_base}/${file}"
+   done
+}
+
+update_amd64() {
+   append_list "${boot_list}" "latest-admincd-amd64.txt"
+}
+
+update_hppa() {
+   append_list "${boot_list}" latest-netboot-hppa{32,64}.txt
+}
+
+update_s390() {
+   append_list "${boot_list}" 
latest-netboot-s390{,x}-{initramfs,kernel}.txt
+}
+
+update_x86() {
+   append_list "${boot_list}" "latest-admincd-x86.txt"
+}
+
+# Update the bootable & stage lists.
+update_arch() {
+   local arch=$1
+   local uri_base="${URI_BASE}/${arch}/autobuilds"
+   local list_base="_data/downloads/${arch}"
+   local boot_list="${list_base}/iso.txt"
+   local stage_list="${list_base}/stage3.txt"
+
+   mkdir -p "${list_base}"
+   fetch "${uri_base}/latest-iso.txt" -O "${boot_list}"
+   fetch "${uri_base}/latest-stage3.txt" -O "${stage_list}"
+   if [[ $(type -t "update_${arch}") == "function" ]] ; then
+   update_${arch}
+   fi
+}
+
+main() {
+   if [[ $# -ne 0 ]] ; then
+   usage
+   fi
+
+   # Make sure we're in the top level dir.
+   cd "$(dirname "$0")"/..
+
+   local arch
+   printf 'Updating ... '
+   for arch in "${ARCHES[@]}" ; do
+   printf '%s ' "${arch}"
+   update_arch "${arch}"
+   done
+   echo '... done'
+}
+main "$@"



[gentoo-commits] sites/www:master commit in: bin/

2016-03-23 Thread Robin H. Johnson
commit: f8f99ed3c0186e38b142f5cfb44bc057aaac802b
Author: Robin H. Johnson  gentoo  org>
AuthorDate: Wed Mar 23 17:40:40 2016 +
Commit: Robin H. Johnson  gentoo  org>
CommitDate: Wed Mar 23 17:40:40 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=f8f99ed3

Add explicit timeouts to all scripts; we had a wget that was stuck for a month

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

 bin/update-devaway.sh   |  2 +-
 bin/update-downloads.sh | 17 +
 bin/update-glsa.sh  |  2 +-
 bin/update-mirrors.sh   |  4 ++--
 bin/update-packages.sh  |  2 +-
 bin/update-planet.sh|  2 +-
 bin/update-use.sh   |  2 +-
 bin/update-userinfo.sh  |  4 ++--
 bin/update-wiki.sh  |  2 +-
 9 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/bin/update-devaway.sh b/bin/update-devaway.sh
index cea35e5..1c0e110 100755
--- a/bin/update-devaway.sh
+++ b/bin/update-devaway.sh
@@ -2,6 +2,6 @@
 
 # TODO: One day, fix up the json to be compatible with jekyll's parser
 echo -n 'Updating devaway information...'
-wget 'http://dev.gentoo.org/devaway/xml/' -O _data/devaway.xml.tmp 2>/dev/null
+wget -T 60 'http://dev.gentoo.org/devaway/xml/' -O _data/devaway.xml.tmp 
2>/dev/null
 [ $? -eq 0 ] && mv _data/devaway.xml.tmp _data/devaway.xml
 echo 'done.'

diff --git a/bin/update-downloads.sh b/bin/update-downloads.sh
index 386de1f..8dea718 100755
--- a/bin/update-downloads.sh
+++ b/bin/update-downloads.sh
@@ -3,20 +3,21 @@ ARCHES=(amd64 x86 alpha arm hppa ia64 mips ppc s390 sh sparc)
 
 echo -n 'Updating downloads...'
 
+# TODO: fix this handling for temp files and if one of the downloads fails but 
not others.
 for arch in "${ARCHES[@]}"; do
   mkdir -p _data/downloads/${arch}/
-  wget 
"http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-iso.txt"; -O 
_data/downloads/${arch}/iso.txt 2>/dev/null
-  wget 
"http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-stage3.txt"; -O 
_data/downloads/${arch}/stage3.txt 2>/dev/null
+  wget -T 60 
"http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-iso.txt"; -O 
_data/downloads/${arch}/iso.txt 2>/dev/null
+  wget -T 60 
"http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-stage3.txt"; -O 
_data/downloads/${arch}/stage3.txt 2>/dev/null
 
   if [ ${arch} = "amd64" ]; then
-wget 
"http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-admincd-amd64.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
+wget -T 60 
"http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-admincd-amd64.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
   elif [ ${arch} = "s390" ]; then
-wget 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390-initramfs.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-wget 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390-kernel.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-wget 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390x-initramfs.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
-wget 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390x-kernel.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
+wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390-initramfs.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
+wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390-kernel.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
+wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390x-initramfs.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
+wget -T 60 
"http://distfiles.gentoo.org/releases/s390/autobuilds/latest-netboot-s390x-kernel.txt";
 -O - >> _data/downloads/${arch}/iso.txt 2>/dev/null
   elif [ ${arch} = "x86" ]; then
-wget 
"http://distfiles.gentoo.org/releases/x86/autobuilds/latest-admincd-x86.txt"; -O 
- >> _data/downloads/${arch}/iso.txt 2>/dev/null
+wget -T 60 
"http://distfiles.gentoo.org/releases/x86/autobuilds/latest-admincd-x86.txt"; -O 
- >> _data/downloads/${arch}/iso.txt 2>/dev/null
   fi
 done
 

diff --git a/bin/update-glsa.sh b/bin/update-glsa.sh
index 6a64069..81d4f65 100755
--- a/bin/update-glsa.sh
+++ b/bin/update-glsa.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating GLSA information...'
-wget 'https://security.gentoo.org/glsa/feed.yaml' -O _data/glsa.yaml.tmp 
2>/dev/null
+wget -T 60 'https://security.gentoo.org/glsa/feed.yaml' -O _data/glsa.yaml.tmp 
2>/dev/null
 [ $? -eq 0 ] && mv _data/glsa.yaml.tmp _data/glsa.yaml
 echo 'done.'

diff --git a/bin/update-mirrors.sh b/bin/update-mirrors.sh
index 0f63bf9..19f6e51 100755
--- a/bin/update-mirrors.sh
+++ b/bin/update-mirrors.sh
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 echo -n 'Updating mirror information...'
-wget 'https://api.gentoo.org/mirrors/distfiles.xml' -O 
_data/mirrors-distfi

[gentoo-commits] sites/www:master commit in: bin/, _plugins/, inside-gentoo/developers/

2016-01-30 Thread Alex Legler
commit: ab268de78b5c9f952cfedfbd75eab2f249f175c2
Author: Alex Legler  a3li  li>
AuthorDate: Sun Jan 31 00:56:23 2016 +
Commit: Alex Legler  gentoo  org>
CommitDate: Sun Jan 31 00:56:23 2016 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=ab268de7

Deprecate herds

 _plugins/herds.rb   | 43 --
 bin/update-herds.sh |  6 
 bin/update.sh   |  1 -
 inside-gentoo/developers/herds.html | 60 ++---
 4 files changed, 9 insertions(+), 101 deletions(-)

diff --git a/_plugins/herds.rb b/_plugins/herds.rb
deleted file mode 100644
index 971f1e2..000
--- a/_plugins/herds.rb
+++ /dev/null
@@ -1,43 +0,0 @@
-module Gentoo
-  class HerdsGenerator < Jekyll::Generator
-XML = '_data/herds.xml'
-
-def generate(site)
-  xml = Nokogiri::XML(File.open(XML))
-
-  site.data['herds'] ||= {}
-
-  xml.xpath('/herds/herd').each do |item|
-item_data = {}
-
-name = item.xpath('./name').first.text
-
-item_data['email'] = item.xpath('./email/text()').first.content
-item_data['description'] = 
item.xpath('./description/text()').first.text
-
-ns_maint = item.xpath('./maintainer')
-item_data['maintainers'] = [] if ns_maint.size > 0
-ns_maint.each do |maint|
-  maint_data = {
-'email' => maint.xpath('./email/text()').first.text,
-'name' => nil,
-'role' => nil
-  }
-
-  ns_name = maint.xpath('./name/text()')
-  maint_data['name'] = ns_name.first.text if ns_name.size > 0
-
-  ns_role = maint.xpath('./role/text()')
-  maint_data['role'] = ns_role.first.text if ns_role.size > 0
-
-  item_data['maintainers'] << maint_data
-end
-
-ns_maintproj = item.xpath('./maintainingproject/text()')
-item_data['proj'] = ns_maintproj.first.text if ns_maintproj.size > 0
-
-site.data['herds'][name] = item_data
-  end
-end
-  end
-end

diff --git a/bin/update-herds.sh b/bin/update-herds.sh
deleted file mode 100755
index 5e21b08..000
--- a/bin/update-herds.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-
-echo -n 'Updating herd information...'
-wget 'https://api.gentoo.org/packages/herds.xml' -O _data/herds.xml.tmp 
2>/dev/null
-[ $? -eq 0 ] && mv _data/herds.xml.tmp _data/herds.xml
-echo 'done.'

diff --git a/bin/update.sh b/bin/update.sh
index 35fd32c..5e8068d 100755
--- a/bin/update.sh
+++ b/bin/update.sh
@@ -3,7 +3,6 @@
 bin/update-devaway.sh || exit 1
 bin/update-downloads.sh || exit 1
 bin/update-glsa.sh || exit 1
-bin/update-herds.sh || exit 1
 bin/update-mirrors.sh || exit 1
 bin/update-packages.sh || exit 1
 bin/update-planet.sh || exit 1

diff --git a/inside-gentoo/developers/herds.html 
b/inside-gentoo/developers/herds.html
index 84f30e0..31a118d 100644
--- a/inside-gentoo/developers/herds.html
+++ b/inside-gentoo/developers/herds.html
@@ -7,59 +7,17 @@ nav1: inside-gentoo
 nav2: developers
 
 nav3: herds
-nav3-show: true
+nav3-show: false
 nav3-weight: 40
 
 layout: page-nav3
 ---
 
-
-  This page lists all package maintenance groups (herds) in the Gentoo project.
-
-
-{% for entry in site.data.herds %}
-{{ entry[0] | xml_escape }}
-
-
-  
-Description
-{{ entry[1].description | xml_escape }}
-  
-  
-Contact
-mailto:{{ entry[1].email | xml_escape }}">{{ entry[1].email | 
xml_escape }}
-  
-  
-Maintainers
-
-  {% if entry[1].maintainers %}
-  
-
-  Maintainer
-  Roles
-
-{% for maint in entry[1].maintainers %}
-
-  
-{% if maint.name %}
-mailto:{{ maint.email | xml_escape }}">{{ maint.name | 
xml_escape }}
-{% else %}
-mailto:{{ maint.email | xml_escape }}">{{ maint.email | 
xml_escape }}
-{% endif %}
-  
-  
-   {{ maint.role | xml_escape }}
-  
-
-{% endfor %}
-  
-  {% endif %}
-
-  {% if entry[1].proj %}
-A Gentoo project is (also) listed as participating in the maintenance 
of packages in this herd.
-Listing maintainers of this project is currently not possible.
-  {% endif %}
-
-  
-
-{% endfor %}
+
+  This page is deprecated.
+  
+  With https://wiki.gentoo.org/wiki/GLEP:67";>GLEP 
67, the concept of herds has been deprecated.
+  
+  Packages are now maintained by Gentoo projects and their respective members.
+  For a list of projects, please see our https://wiki.gentoo.org/wiki/Project:Gentoo";>Wiki.
+



[gentoo-commits] sites/www:master commit in: bin/

2015-10-04 Thread Alex Legler
commit: cf3a50598652c1ba49933b247b46284bf4e283d0
Author: Alex Legler  a3li  li>
AuthorDate: Sun Oct  4 21:11:56 2015 +
Commit: Alex Legler  gentoo  org>
CommitDate: Sun Oct  4 21:11:56 2015 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=cf3a5059

Keep data files when updates cannot be fetched

 bin/update-devaway.sh  | 5 +++--
 bin/update-glsa.sh | 5 +++--
 bin/update-herds.sh| 3 ++-
 bin/update-mirrors.sh  | 8 +---
 bin/update-packages.sh | 3 ++-
 bin/update-planet.sh   | 5 +++--
 bin/update-use.sh  | 3 ++-
 bin/update-wiki.sh | 5 +++--
 8 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/bin/update-devaway.sh b/bin/update-devaway.sh
index 29bf264..cea35e5 100755
--- a/bin/update-devaway.sh
+++ b/bin/update-devaway.sh
@@ -2,5 +2,6 @@
 
 # TODO: One day, fix up the json to be compatible with jekyll's parser
 echo -n 'Updating devaway information...'
-wget 'http://dev.gentoo.org/devaway/xml/' -O _data/devaway.xml 2>/dev/null
-echo 'done.'
\ No newline at end of file
+wget 'http://dev.gentoo.org/devaway/xml/' -O _data/devaway.xml.tmp 2>/dev/null
+[ $? -eq 0 ] && mv _data/devaway.xml.tmp _data/devaway.xml
+echo 'done.'

diff --git a/bin/update-glsa.sh b/bin/update-glsa.sh
index d03f579..6a64069 100755
--- a/bin/update-glsa.sh
+++ b/bin/update-glsa.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating GLSA information...'
-wget 'https://security.gentoo.org/glsa/feed.yaml' -O _data/glsa.yaml 
2>/dev/null
-echo 'done.'
\ No newline at end of file
+wget 'https://security.gentoo.org/glsa/feed.yaml' -O _data/glsa.yaml.tmp 
2>/dev/null
+[ $? -eq 0 ] && mv _data/glsa.yaml.tmp _data/glsa.yaml
+echo 'done.'

diff --git a/bin/update-herds.sh b/bin/update-herds.sh
index 53c3c1b..5e21b08 100755
--- a/bin/update-herds.sh
+++ b/bin/update-herds.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating herd information...'
-wget 'https://api.gentoo.org/packages/herds.xml' -O _data/herds.xml 2>/dev/null
+wget 'https://api.gentoo.org/packages/herds.xml' -O _data/herds.xml.tmp 
2>/dev/null
+[ $? -eq 0 ] && mv _data/herds.xml.tmp _data/herds.xml
 echo 'done.'

diff --git a/bin/update-mirrors.sh b/bin/update-mirrors.sh
index d74dbaf..0f63bf9 100755
--- a/bin/update-mirrors.sh
+++ b/bin/update-mirrors.sh
@@ -1,6 +1,8 @@
 #!/bin/bash
 
 echo -n 'Updating mirror information...'
-wget 'https://api.gentoo.org/mirrors/distfiles.xml' -O 
_data/mirrors-distfiles.xml 2>/dev/null
-wget 'https://api.gentoo.org/mirrors/rsync.xml' -O _data/mirrors-rsync.xml 
2>/dev/null
-echo 'done.'
\ No newline at end of file
+wget 'https://api.gentoo.org/mirrors/distfiles.xml' -O 
_data/mirrors-distfiles.xml.tmp 2>/dev/null
+[ $? -eq 0 ] && mv _data/mirrors-distfiles.xml.tmp _data/mirrors-distfiles.xml
+wget 'https://api.gentoo.org/mirrors/rsync.xml' -O _data/mirrors-rsync.xml.tmp 
2>/dev/null
+[ $? -eq 0 ] && mv _data/mirrors-rsync.xml.tmp _data/mirrors-rsync.xml
+echo 'done.'

diff --git a/bin/update-packages.sh b/bin/update-packages.sh
index 1140207..592e1cf 100755
--- a/bin/update-packages.sh
+++ b/bin/update-packages.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating Packages information...'
-wget 'https://packages.gentoo.org/packages/added.atom' -O _data/packages.xml 
2>/dev/null
+wget 'https://packages.gentoo.org/packages/added.atom' -O 
_data/packages.xml.tmp 2>/dev/null
+[ $? -eq 0 ] && mv _data/packages.xml.tmp _data/packages.xml
 echo 'done.'

diff --git a/bin/update-planet.sh b/bin/update-planet.sh
index 5fb4ff9..a0c8eb4 100755
--- a/bin/update-planet.sh
+++ b/bin/update-planet.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating Planet information...'
-wget 'http://planet.gentoo.org/rss20.xml' -O _data/planet.xml 2>/dev/null
-echo 'done.'
\ No newline at end of file
+wget 'http://planet.gentoo.org/rss20.xml' -O _data/planet.xml.tmp 2>/dev/null
+[ $? -eq 0 ] && mv _data/planet.xml.tmp _data/planet.xml
+echo 'done.'

diff --git a/bin/update-use.sh b/bin/update-use.sh
index b825c3b..1a1b5a4 100755
--- a/bin/update-use.sh
+++ b/bin/update-use.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating USE flag information...'
-wget 'https://api.gentoo.org/packages/use.json' -O _data/use.json 2>/dev/null
+wget 'https://api.gentoo.org/packages/use.json' -O _data/use.json.tmp 
2>/dev/null
+[ $? -eq 0 ] && mv _data/use.json.tmp _data/use.json
 echo 'done.'

diff --git a/bin/update-wiki.sh b/bin/update-wiki.sh
index c27fb73..2759813 100755
--- a/bin/update-wiki.sh
+++ b/bin/update-wiki.sh
@@ -1,5 +1,6 @@
 #!/bin/bash
 
 echo -n 'Updating Wiki information...'
-wget 
'https://wiki.gentoo.org/index.php?title=Special:NewPages&feed=rss&hidebots=1&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter='
 -O _data/wiki.xml 2>/dev/null
-echo 'done.'
\ No newline at end of file
+wget 
'https://wiki.gentoo.org/index.php?title=Special:NewPages&feed=rss&hidebots=1&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter='
 -O _data/wiki.xml.tmp 2>/dev/null
+[ $? -eq 0 ] && mv _data/wiki.xml.tm

[gentoo-commits] sites/www:master commit in: bin/, _plugins/

2015-10-04 Thread Alex Legler
commit: 056de1754eddc251ef41d9ab7afc856f41e7ce5d
Author: Alex Legler  a3li  li>
AuthorDate: Sun Oct  4 12:30:11 2015 +
Commit: Alex Legler  gentoo  org>
CommitDate: Sun Oct  4 12:30:11 2015 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=056de175

Adapt to pgo updates

 _plugins/packages.rb   | 15 ++-
 bin/update-packages.sh |  4 ++--
 2 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/_plugins/packages.rb b/_plugins/packages.rb
index eab8168..7b406ce 100644
--- a/_plugins/packages.rb
+++ b/_plugins/packages.rb
@@ -15,14 +15,10 @@ module Gentoo
 item.children.each do |tag|
   case tag.name
   when 'title'
-tag.css('span').each do |span|
-  if span['class'] == 'cpvstr'
-item_data['atom'] = span.text.strip
-item_data['atom_c'], pv = item_data['atom'].split('/', 2)
-item_data['atom_p'], item_data['atom_v'] = pv.rpartition('-')
-  elsif span['class'] == 'description'
-item_data['description'] = span.text.strip
-  end
+if tag.text =~ /^Added: (.*) \((.*)\)$/
+  item_data['atom'] = $1.strip
+  item_data['atom_c'], item_data['atom_p'] = 
item_data['atom'].split('/', 2)
+  item_data['description'] = $2
 end
   when 'link'
 item_data['uri'] = tag['href']
@@ -32,6 +28,7 @@ module Gentoo
 site.data['packages']['updates'] << item_data
   end
 
+  puts site.data['packages']['updates']
 end
   end
-end
\ No newline at end of file
+end

diff --git a/bin/update-packages.sh b/bin/update-packages.sh
index 1c4ef31..1140207 100755
--- a/bin/update-packages.sh
+++ b/bin/update-packages.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
 
 echo -n 'Updating Packages information...'
-wget 'http://packages.gentoo.org/feed/newpackage' -O _data/packages.xml 
2>/dev/null
-echo 'done.'
\ No newline at end of file
+wget 'https://packages.gentoo.org/packages/added.atom' -O _data/packages.xml 
2>/dev/null
+echo 'done.'



[gentoo-commits] sites/www:master commit in: bin/

2015-08-10 Thread Alex Legler
commit: 73ea24bc8b0f253f05a14cfd72a7e291e285a5ca
Author: Alex Legler  a3li  li>
AuthorDate: Mon Aug 10 09:19:54 2015 +
Commit: Alex Legler  gentoo  org>
CommitDate: Mon Aug 10 09:19:54 2015 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=73ea24bc

Add nickname to gpg error output

 bin/userinfo-export.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/userinfo-export.rb b/bin/userinfo-export.rb
index c805e56..7c9c94c 100755
--- a/bin/userinfo-export.rb
+++ b/bin/userinfo-export.rb
@@ -41,13 +41,13 @@ class GentooLDAP
   end
 end
 
-def gpgfp_format(input)
+def gpgfp_format(input, nick)
   return nil if input == 'undefined'
 
   raw_fp = input.gsub(/\s/, '')
 
   unless raw_fp.length == 40
-$stderr.puts "Invalid GPG FP: #{input}"
+$stderr.puts "Invalid GPG FP for #{nick}: #{input}"
 return nil
   end
 
@@ -68,7 +68,7 @@ def export(data)
 
   ret['roles'] = data['gentooRoles'].first if data.has_key? 'gentooRoles'
   ret['wiki'] = data['gentooWikiUser'].first if data.has_key? 'gentooWikiUser'
-  ret['gpgfp'] = data['gpgfingerprint'].map {|fp| gpgfp_format fp }.compact if 
data.has_key? 'gpgfingerprint'
+  ret['gpgfp'] = data['gpgfingerprint'].map {|fp| gpgfp_format(fp, 
ret['nick']) }.compact if data.has_key? 'gpgfingerprint'
   ret['gpg'] = ret['gpgfp'].map {|fp| gpgfp_to_longid fp } if data.has_key? 
'gpgfingerprint'
 
   # Geolocation



[gentoo-commits] sites/www:master commit in: bin/

2015-05-19 Thread Alex Legler
commit: c6cb4f63de7728b93df2e9c570b8d67fe071f359
Author: Alex Legler  a3li  li>
AuthorDate: Tue May 19 12:55:08 2015 +
Commit: Alex Legler  gentoo  org>
CommitDate: Tue May 19 12:55:08 2015 +
URL:https://gitweb.gentoo.org/sites/www.git/commit/?id=c6cb4f63

Exclude bot edits in the Wiki feed

 bin/update-wiki.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/update-wiki.sh b/bin/update-wiki.sh
index af653a7..c27fb73 100755
--- a/bin/update-wiki.sh
+++ b/bin/update-wiki.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
 
 echo -n 'Updating Wiki information...'
-wget 
'https://wiki.gentoo.org/index.php?title=Special:NewPages&feed=rss&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter='
 -O _data/wiki.xml 2>/dev/null
+wget 
'https://wiki.gentoo.org/index.php?title=Special:NewPages&feed=rss&hidebots=1&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter='
 -O _data/wiki.xml 2>/dev/null
 echo 'done.'
\ No newline at end of file