diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-08-26 01:32:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-08-26 01:32:10 +0000 |
commit | c3d1e0cb467912a099ba1485bf5eeadcfe311bf8 (patch) | |
tree | c714aeca978c9f6c98d8bf85c2d781f2a3883a7a | |
parent | 9d5835b8a2347b671a8e4124a9969c2222c042ec (diff) | |
download | portage-c3d1e0cb467912a099ba1485bf5eeadcfe311bf8.tar.gz portage-c3d1e0cb467912a099ba1485bf5eeadcfe311bf8.tar.bz2 portage-c3d1e0cb467912a099ba1485bf5eeadcfe311bf8.zip |
Recommend `emerge --update --deep world` prior to depclean in order to make sure that all dependencies are satisfied. See bug #145078.
svn path=/main/trunk/; revision=4344
-rwxr-xr-x | bin/emerge | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge index faedc3c50..21be7a087 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3267,6 +3267,11 @@ def action_depclean(settings, trees, ldpath_mtimes, print warn_prefix + "mistakes. Packages that are part of the world set will always" print warn_prefix + "be kept. They can be manually added to this set with" print warn_prefix + good("`emerge --noreplace <atom>`") + "." + print warn_prefix + print warn_prefix + "As a safety measure, depclean will not remove any packages" + print warn_prefix + "unless *all* required dependencies have been resolved. As a" + print warn_prefix + "consequence, it is often necessary to run " + print warn_prefix + good("`emerge --update --deep world`") + " prior to depclean." xterm_titles = "notitles" not in settings.features portdb = trees[settings["ROOT"]]["porttree"].dbapi @@ -3342,6 +3347,8 @@ def action_depclean(settings, trees, ldpath_mtimes, for atom in unresolveable: print atom, "required by", " ".join(unresolveable[atom]) print + print "Have you forgotten to run " + good("`emerge --update --deep world`") + " prior to depclean?" + print return cleanlist = [pkg for pkg in vardb.cpv_all() if not fakedb.cpv_exists(pkg)] |