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
Also remove https repos in zypper_clear_repos #10661
Conversation
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 too quick - wrong type of grouping. This would also match hththptphhths://foo
.
tests/update/zypper_clear_repos.pm
Outdated
@@ -26,7 +26,7 @@ sub run { | |||
my $repos_folder = '/etc/zypp/repos.d'; | |||
zypper_call 'lr -d', exitcode => [0, 6]; | |||
assert_script_run( | |||
"find $repos_folder/*.repo -type f -exec grep -q 'baseurl=http://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", | |||
"find $repos_folder/*.repo -type f -exec grep -Eq 'baseurl='[http|https]://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", |
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.
"find $repos_folder/*.repo -type f -exec grep -Eq 'baseurl='[http|https]://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", | |
"find $repos_folder/*.repo -type f -exec grep -Eq 'baseurl='(http|https)://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", |
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.
Adapted
It's not merged yet - without a verification run and success from travis that wouldn't be a good idea. The approval rating is only for code review AFAIK. |
Confused the merged badge from the old one, sorry that |
dbba337
to
36785b7
Compare
tests/update/zypper_clear_repos.pm
Outdated
@@ -26,7 +26,7 @@ sub run { | |||
my $repos_folder = '/etc/zypp/repos.d'; | |||
zypper_call 'lr -d', exitcode => [0, 6]; | |||
assert_script_run( | |||
"find $repos_folder/*.repo -type f -exec grep -q 'baseurl=http://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", | |||
"find $repos_folder/*.repo -type f -exec grep -Eq 'baseurl='(http|https)://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", |
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.
"find $repos_folder/*.repo -type f -exec grep -Eq 'baseurl='(http|https)://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", | |
"find $repos_folder/*.repo -type f -exec grep -Eq 'baseurl=(http|https)://download.opensuse.org/' {} \\; -delete && echo 'unneed_repos_removed' > /dev/$serialdev", |
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.
+1 was just gonna comment the same
This time with a regex in the original find expression
36785b7
to
b5ba450
Compare
https://openqa.opensuse.org/tests/1327407 https://openqa.opensuse.org/tests/1327408 Removed the Quote and started one NET and one DVD verification |
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.
Still works locally, though now without hypothetical false positives.
Maybe matching 'baseurl=[^:]+://download.opensuse.org/'
is a better option, though currently we mostly use HTTP(s) everywhere.
Wouldn't this match everything before ':' ? I would prefer keeping it as an OR, but I am no regex expert My openqa-clone-custom-git-refspec seems still broken though, so if someone could run
we can verify it on O3 |
Yes, so also |
Both verification are fine, travis has no complaints, can we merge this or do you insist on matching different protocols other than http(s)? |
I'm fine with either. |
Then merge it please |
This time with a regex in the original find expression
This time with a regex in the original find expression
Followup to #10578
Verification needed