Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fix to a bug introduced in the package deletion and promotion #458

Merged
merged 1 commit into from Aug 14, 2012

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Aug 13, 2012

No description provided.

@@ -57,7 +57,7 @@ def self.make_pkg_tuples repo_pkgs
package_tuples = []
repo_pkgs.each do |repo, pkgs|
pkgs.each do |pack|
package_tuples << [[pack.filename,pack.checksum],[repo.pulp_id]]
package_tuples << [[pack.filename,pack.checksum.to_hash.values.first],[repo.pulp_id]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only ever care about the 1st value from the package checksums?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently there is only one checksum stored per package in pulp, so we should be ok with pack.filename,pack.checksum.to_hash.values.first

mccun934 added a commit that referenced this pull request Aug 14, 2012
Quick fix to a bug introduced in the package deletion and promotion
@mccun934 mccun934 merged commit 2accabc into Katello:content-deletion Aug 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants