Skip trailing slashes when checking URL validity.

I guess mjansen found a way to get svn_module_url to return a path
ending in a slash (probably override-url, I was able to reproduce that
way), which can bring up an annoying warning about a harmless condition
if the svn repo itself doesn't end in a slash.

So, simply remove trailing slashes from actual svn URL and expected svn
URL before performing the check.

BUG:266233
wilder
Michael Pyne 15 years ago
parent 3b474acd5f
commit e12e694ac2
  1. 4
      kdesrc-build

@ -6800,9 +6800,11 @@ sub check_module_validity
my $module = shift;
my $source_dir = get_fullpath($module, 'source');
my $module_expected_url = svn_module_url($module);
my $module_actual_url = get_repo_url($module);
$module_expected_url =~ s{/+$}{}; # Remove trailing slashes
$module_actual_url =~ s{/+$}{}; # Remove trailing slashes
eval { plugin_check_module_validity($module, $module_actual_url, $module_expected_url); };
if (exists $ENV{'COVERITY_RUN'} and $module_actual_url ne $module_expected_url)

Loading…
Cancel
Save