diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bin/eclean | 2 | ||||
-rwxr-xr-x | bin/epkginfo | 2 | ||||
-rwxr-xr-x | bin/euse | 2 | ||||
-rw-r--r-- | bin/glsa-check | 2 | ||||
-rw-r--r-- | pym/gentoolkit/equery/__init__.py | 2 |
6 files changed, 9 insertions, 5 deletions
@@ -1,4 +1,8 @@ 2009-05-20: Paul Varner <fuzzyray@gentoo.org> + * All: Convert from using /etc/gentoolkit-version to + /usr/share/gentoolkit/VERSION + +2009-05-20: Paul Varner <fuzzyray@gentoo.org> * glsa-check: Add patches from Robert Buchholz to do the following: Handle unicode encoding better, python tweaks to speedup execution, change behavior of getMinUpgrade, restructure system affection @@ -9,7 +9,7 @@ from __future__ import with_statement # Meta: __author__ = "Thomas de Grenier de Latour (tgl)" __email__ = "degrenier@easyconnect.fr" -__version__ = open('/etc/gentoolkit-version').read().strip() +__version__ = open('/usr/share/gentoolkit/VERSION').read().strip() __productname__ = "eclean" __description__ = "A cleaning tool for Gentoo distfiles and binaries." diff --git a/bin/epkginfo b/bin/epkginfo index 313170a..b7d6f63 100755 --- a/bin/epkginfo +++ b/bin/epkginfo @@ -19,7 +19,7 @@ from xml.sax.handler import feature_namespaces import portage from portage.output import * -version = open('/etc/gentoolkit-version').read().strip() +version = open('/usr/share/gentoolkit/VERSION').read().strip() def getvar(pkg, var): file = open(pkg + ".ebuild") @@ -7,7 +7,7 @@ # Licensed under the GPL v2 PROGRAM_NAME=euse -PROGRAM_VERSION=$(cat /etc/gentoolkit-version) +PROGRAM_VERSION=$(cat /usr/share/gentoolkit/VERSION) MAKE_CONF_PATH=/etc/make.conf MAKE_GLOBALS_PATH=/etc/make.globals diff --git a/bin/glsa-check b/bin/glsa-check index 3c91d5e..c24ef23 100644 --- a/bin/glsa-check +++ b/bin/glsa-check @@ -21,7 +21,7 @@ from getopt import getopt, GetoptError __program__ = "glsa-check" __author__ = "Marius Mauch <genone@gentoo.org>" -__version__ = open("/etc/gentoolkit-version").read().strip() +__version__ = open("/usr/share/gentoolkit/VERSION").read().strip() optionmap = [ ["-l", "--list", "list all unapplied GLSA"], diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py index 6bb04a9..c270eb9 100644 --- a/pym/gentoolkit/equery/__init__.py +++ b/pym/gentoolkit/equery/__init__.py @@ -333,7 +333,7 @@ def print_version(): """Print the version of this tool to the console.""" try: - with open('/etc/gentoolkit-version') as gentoolkit_version: + with open('/usr/share/gentoolkit/VERSION') as gentoolkit_version: version = gentoolkit_version.read().strip() except IOError, err: pp.die(2, str(err)) |