diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-29 01:14:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-29 01:14:37 +0000 |
commit | 9702fa39680a28ff7e9461d8e9469105f5023a6f (patch) | |
tree | cf03288f97800f78835191a46160fc44a371b93b /bin/emerge | |
parent | e30e81f929d8858fd4724fd9872def91f9c4a36a (diff) | |
download | portage-9702fa39680a28ff7e9461d8e9469105f5023a6f.tar.gz portage-9702fa39680a28ff7e9461d8e9469105f5023a6f.tar.bz2 portage-9702fa39680a28ff7e9461d8e9469105f5023a6f.zip |
For bug #164078, don't trigger the CLEAN_DELAY countdown for autoclean operations since those are most likely unattended. Thanks to Dan <hydrogen@notyetimplemented.com> for the initial patch. (trunk r5827)
svn path=/main/branches/2.1.2/; revision=5828
Diffstat (limited to 'bin/emerge')
-rwxr-xr-x | bin/emerge | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/emerge b/bin/emerge index 071285938..1302818a7 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3065,7 +3065,7 @@ class MergeTask(object): xsplit=portage.pkgsplit(x[2]) emergelog(xterm_titles, " >>> AUTOCLEAN: " + xsplit[0]) retval = unmerge(pkgsettings, self.myopts, vartree, - "clean", [xsplit[0]], ldpath_mtimes) + "clean", [xsplit[0]], ldpath_mtimes, autoclean=1) if not retval: emergelog(xterm_titles, " --- AUTOCLEAN: Nothing unmerged.") @@ -3151,7 +3151,7 @@ class MergeTask(object): return os.EX_OK def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files, - ldpath_mtimes): + ldpath_mtimes, autoclean=0): candidate_catpkgs=[] global_unmerge=0 xterm_titles = "notitles" not in settings.features @@ -3403,7 +3403,8 @@ def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files, print return 0 #the real unmerging begins, after a short delay.... - countdown(int(settings["CLEAN_DELAY"]), ">>> Unmerging") + if not autoclean: + countdown(int(settings["CLEAN_DELAY"]), ">>> Unmerging") for x in pkgmap.keys(): for y in pkgmap[x]["selected"]: @@ -4738,7 +4739,7 @@ def action_build(settings, trees, mtimedb, print ">>> Auto-cleaning packages..." vartree = trees[settings["ROOT"]]["vartree"] unmerge(settings, myopts, vartree, "clean", ["world"], - ldpath_mtimes) + ldpath_mtimes, autoclean=1) else: portage.writemsg_stdout(colorize("WARN", "WARNING:") + " AUTOCLEAN is disabled. This can cause serious" |