From: Zac Medico Date: Mon, 26 Jun 2006 02:27:48 +0000 (-0000) Subject: Don't run post_emerge() when --pretend is enabled. X-Git-Tag: v2.1.1~378 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ea2305e7863e9f4ee69b962c609a0f79137caf1c;p=portage.git Don't run post_emerge() when --pretend is enabled. svn path=/main/trunk/; revision=3662 --- 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: