Conversation
|
Hello @dparalen! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on June 08, 2018 at 08:34 Hours UTC |
|
Can one of the admins verify this patch? |
22731b7
to
02732ff
Compare
13260d1
to
1b816b9
Compare
|
Is there an issue associated with this? Specifically, I'd like to see a summary of the motivation for this change. |
|
@asmacdo https://pulp.plan.io/issues/2619 I forgotten a link in the commit message (just #ID there), will submit with next update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While running this on an older Pulp I ran into a problem where this tools was relying on a method in pulp_rpm that did not exist. I left a comment in the code to show where.
This tool should probably rely only on the model schema. Any other code could be significantly different from version to version of Pulp. Even though it is not DRY, you should probably just copy the methods you need from pulp_rpm into this tool. This way we'll be able to run this tool against older versions of Pulp.
Since the symlink validator is very much related to the yum_distributor, I recommend putting this tool in the pulp_rpm repository.
| functools.partial(os.path.samefile, unit.storage_path) or | ||
| os.path.lexists | ||
| ) | ||
| symlink_name = unit.get_symlink_name() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is not available in older versions of pulp_rpm.
| yield validator.DarkPath(self, storage_path, DarkContentError(storage_path)) | ||
|
|
||
|
|
||
| class BrokenSymlinksValidator(validator.MultiValidator): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this validator is very specific to pulp_rpm.
|
@dkliban, thanks for the review! |
b76703d
to
0aa012c
Compare
f5afb56
to
7d5f7f0
Compare
69d7ae1
to
65effc4
Compare
739653f
to
75207f9
Compare
75fa002
to
8d68fd5
Compare
f306bfa
to
e48a096
Compare
To test:
TODO: