summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py5
-rw-r--r--pym/portage/manifest.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 1b07b966d..ee46aeeaf 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2614,8 +2614,11 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None
writemsg("!!! Invalid SRC_URI for '%s'.\n" % cpv, noiselevel=-1)
del e
return 0
+ mytree = os.path.dirname(os.path.dirname(mysettings["O"]))
+ manifest1_compat = not os.path.exists(
+ os.path.join(mytree, "manifest1_obsolete"))
mf = Manifest(mysettings["O"], mysettings["DISTDIR"],
- fetchlist_dict=fetchlist_dict)
+ fetchlist_dict=fetchlist_dict, manifest1_compat=manifest1_compat)
# Don't require all hashes since that can trigger excessive
# fetches when sufficient digests already exist. To ease transition
# while Manifest 1 is being removed, only require hashes that will
diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py
index 732d403f8..24f933294 100644
--- a/pym/portage/manifest.py
+++ b/pym/portage/manifest.py
@@ -439,7 +439,8 @@ class Manifest(object):
else:
distfilehashes = {}
self.__init__(self.pkgdir, self.distdir,
- fetchlist_dict=self.fetchlist_dict, from_scratch=True)
+ fetchlist_dict=self.fetchlist_dict, from_scratch=True,
+ manifest1_compat=self.compat)
for pkgdir, pkgdir_dirs, pkgdir_files in os.walk(self.pkgdir):
break
for f in pkgdir_files: