diff options
| author | genone <genone@gentoo.org> | 2004-12-08 10:52:43 +0000 |
|---|---|---|
| committer | genone <genone@gentoo.org> | 2004-12-08 10:52:43 +0000 |
| commit | c5f9b36c30757dec3267ba9527819dbab172088a (patch) | |
| tree | a61dbc7c122fafdd7ef27ba51796462a2411776c | |
| parent | 5f87388fb7540c6115068f5ff475c9a14f0d0a7c (diff) | |
| download | gentoolkit-c5f9b36c30757dec3267ba9527819dbab172088a.tar.gz | |
python-2.3 check
svn path=/; revision=180
| -rw-r--r-- | trunk/ChangeLog | 4 | ||||
| -rw-r--r-- | trunk/src/glsa-check/glsa-check | 2 | ||||
| -rw-r--r-- | trunk/src/glsa-check/glsa.py | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/trunk/ChangeLog b/trunk/ChangeLog index d7a6a79..6b9dc6d 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,9 +1,11 @@ 2004-12-08 Marius Mauch <genone@gentoo.org> * equery: implemented the --category option * glsa-check: fixed the bug where it wanted to unnecessary merge masked packages - * glsa-check: Added a check to verify that all non-option arguments are valid GLSAs + * glsa-check: added a check to verify that all non-option arguments are valid GLSAs * glsa.py: changed the outfile parameter in Glsa.dump() to outstream so we don't have to open/close a file which breaks pipes + * glsa.py: checks now for python versions below 2.3 and throws an exception + 2004-11-29 Karl Trygve Kalleberg <karltk@gentoo.org> * branched v0-3-0: major rework in equery is in progess. the main branch is reserved for minor and incremental fixups. diff --git a/trunk/src/glsa-check/glsa-check b/trunk/src/glsa-check/glsa-check index 751a658..b245b55 100644 --- a/trunk/src/glsa-check/glsa-check +++ b/trunk/src/glsa-check/glsa-check @@ -11,7 +11,7 @@ from getopt import getopt,GetoptError __program__ = "glsa-check" __author__ = "Marius Mauch <genone@gentoo.org>" -__version__ = "0.4" +__version__ = "0.5" optionmap = [ ["-l", "--list", "list all unapplied GLSA"], diff --git a/trunk/src/glsa-check/glsa.py b/trunk/src/glsa-check/glsa.py index feef19f..6759d50 100644 --- a/trunk/src/glsa-check/glsa.py +++ b/trunk/src/glsa-check/glsa.py @@ -16,6 +16,10 @@ __author__ = "Marius Mauch <genone@gentoo.org>" import os, sys, urllib, time, string, codecs, re import xml.dom.minidom +if sys.version_info[0:2] < (2,3): + raise NotImplementedError("Python versions below 2.3 have broken XML code " \ + +"and are not supported") + sys.path.insert(0, "/usr/lib/portage/pym") # to find portage.py import portage |
