summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2010-09-22 21:26:01 +0000
committerfuzzyray <fuzzyray@gentoo.org>2010-09-22 21:26:01 +0000
commitede9ba7fae12b8f5c849300836157ba249243adf (patch)
tree2b65c7a95fb0695974284e55dfb063d29c33c4fb
parentdad8dce2d4363d4c80bd85770e4f02ad9e92af7d (diff)
downloadgentoolkit-ede9ba7fae12b8f5c849300836157ba249243adf.tar.gz
Merge from genscripts r445: brian.dolbec
fix Bug 327741. put in the full command path including the EPREFIX if defined. svn path=/trunk/gentoolkit/; revision=808
-rw-r--r--pym/gentoolkit/eclean/pkgindex.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/gentoolkit/eclean/pkgindex.py b/pym/gentoolkit/eclean/pkgindex.py
index a09ab55..108e1ef 100644
--- a/pym/gentoolkit/eclean/pkgindex.py
+++ b/pym/gentoolkit/eclean/pkgindex.py
@@ -11,6 +11,7 @@ import os
import sys
import gentoolkit.pprinter as pp
+from gentoolkit.eprefix import EPREFIX
import portage
@@ -25,6 +26,8 @@ class PkgIndex(object):
def __init__(self, controller=None):
self.controller = controller
+ # backup command line call
+ self.emaint_cmd = "%s/usr/sbin/emaint --fix binhost" % EPREFIX
def _get_emaint_binhost(self):
@@ -75,9 +78,8 @@ class PkgIndex(object):
file_ = os.path.join(portage.settings['PKGDIR'], 'Packages')
statinfo = os.stat(file_)
size1 = statinfo.st_size
- command = "emaint --fix binhost"
try:
- retcode = subprocess.call(command, shell=True)
+ retcode = subprocess.call(self.emaint_cmd, shell=True)
if retcode < 0:
print( pp.error("Child was terminated by signal" + str(-retcode)), file=sys.stderr)
except OSError as e: