Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fixed migration of a distribution tree if it has a treeinfo and not .…
Browse files Browse the repository at this point in the history
…treeinfo

closes #6951

https://pulp.plan.io/issues/6951
  • Loading branch information
ipanova committed Aug 7, 2020
1 parent 8ec0360 commit cf07c2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/6951.bugfix
@@ -0,0 +1 @@
Fixed migration of a distribution tree if it has a treeinfo and not .treeinfo
2 changes: 1 addition & 1 deletion pulp_2to3_migration/app/plugin/rpm/pulp_2to3_models.py
Expand Up @@ -714,7 +714,7 @@ def create_pulp3_content(self):
for namespace in namespaces:
treeinfo = PulpTreeInfo()
try:
treeinfo.load(f=os.path.join(self.pulp2content.pulp2_storage_path, '.treeinfo'))
treeinfo.load(f=os.path.join(self.pulp2content.pulp2_storage_path, namespace))
except FileNotFoundError:
continue
self.filename = namespace
Expand Down

0 comments on commit cf07c2d

Please sign in to comment.