* [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/
@ 2011-02-14 20:29 Robin H. Johnson
0 siblings, 0 replies; 6+ messages in thread
From: Robin H. Johnson @ 2011-02-14 20:29 UTC (permalink / raw
To: gentoo-commits
commit: 38e4024a0ea5cd6f5054725bfdda71a2e4480c8c
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 14 20:28:53 2011 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Feb 14 20:28:53 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-gentoo.git;a=commit;h=38e4024a
Improve cElementTree import.
---
gentoo-scripts/herds.py | 5 ++++-
gentoo-scripts/maintainer.py | 5 ++++-
gentoo-scripts/metadata.py | 5 ++++-
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/gentoo-scripts/herds.py b/gentoo-scripts/herds.py
index 8775af7..6649062 100644
--- a/gentoo-scripts/herds.py
+++ b/gentoo-scripts/herds.py
@@ -7,10 +7,13 @@ cache_max_age = 100
# python, pyxml
import sys, string, os
-import cElementTree as elementtree
import urllib2
import os
import time
+try:
+ import cElementTree as etree
+except ImportError:
+ import xml.etree.cElementTree as etree
if len(sys.argv) < 2:
print "usage: herds.py herdname"
diff --git a/gentoo-scripts/maintainer.py b/gentoo-scripts/maintainer.py
index 5e637dc..1172591 100644
--- a/gentoo-scripts/maintainer.py
+++ b/gentoo-scripts/maintainer.py
@@ -21,7 +21,10 @@ sys.stderr = stderr
from stat import *
from output import *
-import cElementTree as etree
+try:
+ import cElementTree as etree
+except ImportError:
+ import xml.etree.cElementTree as etree
nocolor()
diff --git a/gentoo-scripts/metadata.py b/gentoo-scripts/metadata.py
index e6785d5..8b7f974 100644
--- a/gentoo-scripts/metadata.py
+++ b/gentoo-scripts/metadata.py
@@ -22,7 +22,10 @@ sys.stderr = stderr
from stat import *
from portage.output import *
-import cElementTree as etree
+try:
+ import cElementTree as etree
+except ImportError:
+ import xml.etree.cElementTree as etree
nocolor()
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/
@ 2011-10-19 15:31 Christian Ruppert
0 siblings, 0 replies; 6+ messages in thread
From: Christian Ruppert @ 2011-10-19 15:31 UTC (permalink / raw
To: gentoo-commits
commit: 601f2c6f3e940c430f48ef258452b6c2a45c96ec
Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 19 15:29:00 2011 +0000
Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Wed Oct 19 15:29:00 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-gentoo.git;a=commit;h=601f2c6f
Fix no-herd error
X-Gentoo-Bug: 384441
X-Gentoo-Bug-URL: https://bugs.gentoo.org/384441
---
gentoo-scripts/metadata.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gentoo-scripts/metadata.py b/gentoo-scripts/metadata.py
index 8b7f974..ebd8721 100644
--- a/gentoo-scripts/metadata.py
+++ b/gentoo-scripts/metadata.py
@@ -61,7 +61,7 @@ def check_metadata(full_package):
else:
herds.append(red('bogus empty herd'))
if not herds:
- ret.append(darkgreen(" Herd: ") + red("Error (No Herd)"))
+ ret.append(darkgreen(" Herd: no-herd"))
else:
ret.append(darkgreen(" Herd: ") + ", ".join(herds))
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/
@ 2012-02-20 1:40 Robin H. Johnson
0 siblings, 0 replies; 6+ messages in thread
From: Robin H. Johnson @ 2012-02-20 1:40 UTC (permalink / raw
To: gentoo-commits
commit: 9ddacda7afd6f74801c2ab07121e39fff623f083
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 20 01:39:50 2012 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Feb 20 01:39:50 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-gentoo.git;a=commit;h=9ddacda7
Do not introduce our own false no-herd.
---
gentoo-scripts/metadata.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/gentoo-scripts/metadata.py b/gentoo-scripts/metadata.py
index ebd8721..b49bbf2 100644
--- a/gentoo-scripts/metadata.py
+++ b/gentoo-scripts/metadata.py
@@ -60,9 +60,7 @@ def check_metadata(full_package):
herds.append(herd.text)
else:
herds.append(red('bogus empty herd'))
- if not herds:
- ret.append(darkgreen(" Herd: no-herd"))
- else:
+ if herds:
ret.append(darkgreen(" Herd: ") + ", ".join(herds))
maintainers = []
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/
@ 2012-02-20 1:40 Robin H. Johnson
0 siblings, 0 replies; 6+ messages in thread
From: Robin H. Johnson @ 2012-02-20 1:40 UTC (permalink / raw
To: gentoo-commits
commit: 3e8840ac51f3f4800b85d75602b707317b46cca3
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 20 01:39:33 2012 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Feb 20 01:39:33 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/rbot-gentoo.git;a=commit;h=3e8840ac
No-herd should removed from tree.
---
gentoo-scripts/not-a-herd.txt | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/gentoo-scripts/not-a-herd.txt b/gentoo-scripts/not-a-herd.txt
index 571cde8..ca23744 100644
--- a/gentoo-scripts/not-a-herd.txt
+++ b/gentoo-scripts/not-a-herd.txt
@@ -5,3 +5,4 @@ qa (Gentoo Quality Assurance) is not a herd. For a semi complete listing of peop
forums (Gentoo Linux Forums) is not a herd. For a complete listing of people on that team visit http://www.gentoo.org/proj/en/forums
releng (Release Engineering) is not a herd. For a semi complete listing of people on that team visit http://www.gentoo.org/proj/en/releng
treecleaners (TreeCleaners) is not a herd. it is a qa subproject. For a semi complete listing of people on that team visit http://www.gentoo.org/proj/en/qa/treecleaners
+no-herd (No Herd) is not a herd. It should be removed from metadata.xml.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/
@ 2016-11-22 4:25 Robin H. Johnson
0 siblings, 0 replies; 6+ messages in thread
From: Robin H. Johnson @ 2016-11-22 4:25 UTC (permalink / raw
To: gentoo-commits
commit: 523b99b517edaf64784776947d4df380dbd15207
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 04:25:18 2016 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Nov 22 04:25:18 2016 +0000
URL: https://gitweb.gentoo.org/proj/rbot-gentoo.git/commit/?id=523b99b5
Drop changelog support, outcome of bug #402749.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
gentoo-scripts/changelog.py | 61 ---------------------------------------------
1 file changed, 61 deletions(-)
diff --git a/gentoo-scripts/changelog.py b/gentoo-scripts/changelog.py
deleted file mode 100644
index 6367899..0000000
--- a/gentoo-scripts/changelog.py
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/usr/bin/python -O
-
-# Copyright (C) 2004 Eric Olinger, http://evvl.rustedhalo.net
-# Distributed under the terms of the GNU General Public License, v2 or later
-# Author : Eric Olinger <EvvL AT RustedHalo DOT net>
-
-# I changed stuff. solar@gentoo.org
-
-import os,sys
-
-sys.stderr=open("/dev/null","w")
-
-import portage,string,re
-from stat import *
-from output import *
-from xml.sax import saxutils, make_parser, handler
-from xml.sax.handler import feature_namespaces
-
-nocolor()
-
-version="0.2.5"
-
-def usage(code):
- """Prints the uage information for this script"""
- print green("metadata v" + version + "\n")
- print "Usage: metadata [package-cat/]package"
- sys.exit(code)
-
-def grab_changelog_stuff(catpkg):
- try:
- foo=""
- os.chdir(portage.settings["PORTDIR"] + "/" + catpkg)
- r=re.compile("<[-.A-Za-z_0-9]+@gentoo.org>", re.I)
-
- s="\n".join(portage.grabfile("ChangeLog"))
-
- d={}
- for x in r.findall(s):
- if x not in d:
- d[x] = 0
- d[x] += 1
-
- l=[(d[x], x) for x in d.keys()]
- l.sort(lambda x,y: cmp(y[0], x[0]))
- for x in l:
- p = str(x[0]) +" "+ x[1].lstrip("<").rstrip(">")
- foo += p[:p.find("@")]+", "
- return foo
- except:
- raise
-
-def main ():
- if len( sys.argv ) < 2:
- usage( 1 )
-
- for pkg in sys.argv[1:]:
- package_list = portage.portdb.xmatch("match-all", pkg)
- print darkgreen("Package: ") + portage.pkgsplit(package_list[0])[0] + " " + darkgreen("ChangeLog: ") + grab_changelog_stuff(portage.pkgsplit(package_list[0])[0])
-
-if __name__ == '__main__':
- main()
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/
@ 2016-11-22 4:25 Robin H. Johnson
0 siblings, 0 replies; 6+ messages in thread
From: Robin H. Johnson @ 2016-11-22 4:25 UTC (permalink / raw
To: gentoo-commits
commit: cb828c0b80a0fab32256d9845c05f50cfce9ddf0
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 04:18:48 2016 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Nov 22 04:18:48 2016 +0000
URL: https://gitweb.gentoo.org/proj/rbot-gentoo.git/commit/?id=cb828c0b
bug#423207: changelogs.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
gentoo-scripts/changelog.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gentoo-scripts/changelog.py b/gentoo-scripts/changelog.py
index 066f736..6367899 100644
--- a/gentoo-scripts/changelog.py
+++ b/gentoo-scripts/changelog.py
@@ -30,7 +30,7 @@ def grab_changelog_stuff(catpkg):
try:
foo=""
os.chdir(portage.settings["PORTDIR"] + "/" + catpkg)
- r=re.compile("<[A-Za-z_0-9]+@gentoo.org>", re.I)
+ r=re.compile("<[-.A-Za-z_0-9]+@gentoo.org>", re.I)
s="\n".join(portage.grabfile("ChangeLog"))
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-11-22 4:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-22 4:25 [gentoo-commits] proj/rbot-gentoo:master commit in: gentoo-scripts/ Robin H. Johnson
-- strict thread matches above, loose matches on Subject: below --
2016-11-22 4:25 Robin H. Johnson
2012-02-20 1:40 Robin H. Johnson
2012-02-20 1:40 Robin H. Johnson
2011-10-19 15:31 Christian Ruppert
2011-02-14 20:29 Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox