diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-31 11:45:28 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-31 11:45:28 -0700 |
commit | 75dab994c4a3e7c38ea29cc633706c435991da05 (patch) | |
tree | ed60a2e5ef4ffa3f93f4cb82104b1ee93923bf95 /pym/_emerge/depgraph.py | |
parent | cd08c946dce4f9f5466597e92ce9df3b0ff197bd (diff) | |
download | portage-75dab994c4a3e7c38ea29cc633706c435991da05.tar.gz portage-75dab994c4a3e7c38ea29cc633706c435991da05.tar.bz2 portage-75dab994c4a3e7c38ea29cc633706c435991da05.zip |
When portage updates itself and the new version either inherits
git.eclass or has 9999 in its version, trigger the 'use copy of current
sources for install, then restart portage' routine. This is required
since with the live git portage-9999 ebuild we can't use the version
to detect incompatible changes to ebuild.sh. This issue was noticed
due to recent versions of ebuild.sh expecting PORTAGE_BZIP2_COMMAND to
be set, causing incompatibility with installed portage-9999 instances.
Diffstat (limited to 'pym/_emerge/depgraph.py')
-rw-r--r-- | pym/_emerge/depgraph.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 25429601e..3be0a196b 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4897,8 +4897,10 @@ class depgraph(object): pkg.root == self._frozen_config._running_root.root and \ portage.match_from_list( portage.const.PORTAGE_PACKAGE_ATOM, [pkg]) and \ - not vardb.cpv_exists(pkg.cpv) and \ "--quiet" not in self._frozen_config.myopts: + if not vardb.cpv_exists(pkg.cpv) or \ + '9999' in pkg.cpv or \ + 'git' in pkg.inherited: if mylist_index < len(mylist) - 1: p.append(colorize("WARN", "*** Portage will stop merging at this point and reload itself,")) p.append(colorize("WARN", " then resume the merge.")) |