Lines 518-523
def action_build(
Link Here
|
518 |
if mergecount != 0: |
518 |
if mergecount != 0: |
519 |
myopts.pop("--ask", None) |
519 |
myopts.pop("--ask", None) |
520 |
|
520 |
|
|
|
521 |
emergerc_bin = os.path.join("/", portage.const.PORTAGE_BIN_PATH, "emergerc-functions.sh") |
522 |
emergerc_script = os.path.join("/", portage.const.USER_CONFIG_PATH, "emergerc") |
523 |
shproc = subprocess.Popen(["/bin/sh"], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) |
524 |
shproc.stdin.write("source " + emergerc_bin + ";") |
525 |
shproc.stdin.write("[[ -f " + emergerc_script + " ]] && source " + emergerc_script + ";") |
526 |
shproc.stdin.write("firstEmerge_hooks;") |
527 |
output = shproc.communicate() |
528 |
for line in output: |
529 |
print(line) |
530 |
|
521 |
if ("--pretend" in myopts) and not ( |
531 |
if ("--pretend" in myopts) and not ( |
522 |
"--fetchonly" in myopts or "--fetch-all-uri" in myopts |
532 |
"--fetchonly" in myopts or "--fetch-all-uri" in myopts |
523 |
): |
533 |
): |