Skip to content

Commit

Permalink
Problem: RPMs from distribution published twice
Browse files Browse the repository at this point in the history
Solution: stop publishing Distributions in Packages directory

fixes: #4541
https://pulp.plan.io/issues/4541
  • Loading branch information
dkliban committed Mar 15, 2019
1 parent af6776b commit c4c2ea5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions plugins/pulp_rpm/plugins/distributors/yum/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,6 @@ def _publish_distribution_packages_link(self, distribution_unit):
:type distribution_unit: pulp_rpm.plugins.db.models.Distribution
"""
symlink_dir = self.get_working_dir()
package_path = None

if distribution_unit.packagedir:
# The packages_dir is a relative directory that exists underneath the repo directory
Expand All @@ -1119,11 +1118,6 @@ def _publish_distribution_packages_link(self, distribution_unit):
# the _create_symlink will create a real directory
os.unlink(package_path)

default_packages_symlink = os.path.join(symlink_dir, 'Packages')
if package_path != default_packages_symlink:
# Add the Packages directory to the content directory
self.package_dirs.append(default_packages_symlink)


class CreateIsoStep(platform_steps.PluginStep):
"""
Expand Down

0 comments on commit c4c2ea5

Please sign in to comment.