sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "pym"))
import portage
from portage.output import colorize
+from portage.const import EPREFIX
class Binpkg(CompositeTask):
__slots__ = ("find_blockers",
waiting_msg = ("Fetching '%s' " + \
"in the background. " + \
"To view fetch progress, run `tail -f " + \
- "/var/log/emerge-fetch.log` in another " + \
+ EPREFIX + "/var/log/emerge-fetch.log` in another " + \
"terminal.") % prefetcher.pkg_path
msg_prefix = colorize("GOOD", " * ")
from textwrap import wrap
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "pym"))
import portage
from portage.output import colorize
+from portage.const import EPREFIX
class EbuildBuild(CompositeTask):
__slots__ = ("args_set", "config_pool", "find_blockers",
waiting_msg = "Fetching files " + \
"in the background. " + \
"To view fetch progress, run `tail -f " + \
- "/var/log/emerge-fetch.log` in another " + \
+ EPREFIX + "/var/log/emerge-fetch.log` in another " + \
"terminal."
msg_prefix = colorize("GOOD", " * ")
from textwrap import wrap
from portage.data import secpass
from portage.output import xtermTitle
+from portage.const import EPREFIX
-_emerge_log_dir = '/var/log'
+_emerge_log_dir = EPREFIX + '/var/log'
def emergelog(xterm_titles, mystr, short_msg=None):
if xterm_titles and short_msg: