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
bs_publish: move out repository create stuff into separate function #7891
base: master
Are you sure you want to change the base?
Conversation
my $prp = "$projid/$repoid"; | ||
print " creating repository\n"; | ||
my ($extrep, $stageservers) = BSUrlmapper::get_extrep_stageservers($prp); | ||
return unless $extrep; |
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.
you don't create repo metadata anymore, if no stage server is defined?
This is not wanted....
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.
Because $stageservers is unused here I assume that you are suggesting to use BSUrlmapper::get_extrep($prp)
instead, as done in the updated patch ?
This refactoring provides the counterpart of deleterepo() to increase code readability. see openSUSE#7679
55a8f35
to
547cee4
Compare
Hey, where's the |
Oh, wait, it's there. The inline comments confused me. |
Please put |
And your |
There is a set of createrepo_xxx() and deleterepo_xxx() function called by this new function. Does this mean that these functions are also only creating meta data and should be renamed to createmetadata_xxx and deletemetadata_xxx ? |
Furthermore there are
inside these functions. Does your statement apply also to this ? |
This refactoring provides the counterpart of deleterepo() to increase code readability.
see #7679
Please note that this is my first obs post in Perl and I am not 100% sure if I have always used the correct Perl syntax.