From ea2305e7863e9f4ee69b962c609a0f79137caf1c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 26 Jun 2006 02:27:48 +0000 Subject: [PATCH] Don't run post_emerge() when --pretend is enabled. svn path=/main/trunk/; revision=3662 --- bin/emerge | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/emerge b/bin/emerge index d75a5b603..2712a93a0 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3321,7 +3321,8 @@ def action_build(myopts, myaction, myfiles): portage.writemsg_stdout(colorize("WARN", "WARNING:") + " AUTOCLEAN is disabled. This can cause serious" + " problems due to overlapping packages.\n") - post_emerge(settings, info_mtimes, 0) + if "--pretend" not in myopts: + post_emerge(settings, info_mtimes, 0) def parse_opts(tmpcmdline): myaction=None @@ -3685,8 +3686,9 @@ if __name__ == "__main__": vartree = trees[settings["ROOT"]]["vartree"] if 1 == unmerge(settings, myopts, vartree, myaction, myfiles, raise_on_missing=False): - post_emerge(settings, info_mtimes, 0) - + if "--pretend" not in myopts: + post_emerge(settings, info_mtimes, 0) + elif "depclean"==myaction: action_depclean(myopts) # "update", "system", or just process files: -- 2.26.2