-
Notifications
You must be signed in to change notification settings - Fork 45
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
[1/x] Prepare code sprint and implement repository type detection #1056
Conversation
d3c93d1
to
a4ed301
Compare
Well Done! Your tests are still passing. |
logger: logger, | ||
mirroring_base_dir: RMT::DEFAULT_MIRROR_DIR, | ||
mirror_src: RMT::Config.mirror_src_files?, | ||
airgap_mode: false |
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.
Was it a bug that we didn't set airgap_mode
before?
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 defaults to to false. For the sake of being explicit we added it here
base_url: URI.join(repository_url), | ||
base_dir: repository_dir, | ||
cache_dir: repository_dir | ||
def detect_repository_type |
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.
Imho the 'detect_' prefix is superfluous.
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.
I agree, we keep it in mind and change the naming when we switch to our new implementations!
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.
Great 👍
Description
This PR is part of our code sprint: https://trello.com/c/hU27QHob/3134-rdeb-sprint-tracker
The whole changeset is:
[1/x] Prepare code sprint and implement repository type detection
[2/x] Add debian mirroring support to RMT
Implementations in this PR:
mirror.rb
intomirror/repomd.rb
and make CLI and everything working with the new layoutdetect_repository_type
(see: https://github.com/SUSE/rmt/pull/1056/files#diff-ab471d2d1e1090f261618b78f4d678e711afb8063a7303187375a3bbe3bee075R15)The repository type is not yet used in any way and is only there for future use.
How to test this pull request:
Make sure mirroring is working as expected
$ bin/rmt-cli mirror # Expect: mirroring to work normally
Test repository type detection
Thanks for reviewing this pull request!
If you have any question please do not hesitate to approach me! 🚀