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. [email protected]
-
-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][email protected]>", 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()

Reply via email to