Skip to content

Commit

Permalink
Also remove https repos in zypper_clear_repos
Browse files Browse the repository at this point in the history
This time with a regex in the original find expression
  • Loading branch information
DrMullings committed Jul 8, 2020
1 parent ce1d236 commit 36785b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/update/zypper_clear_repos.pm
Expand Up @@ -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",
15
);
zypper_call 'lr -d', exitcode => [0, 6];
Expand Down

0 comments on commit 36785b7

Please sign in to comment.