Skip to content

Commit

Permalink
[backend] fix kiwiurlmapper BSConfig::prp_ext_map handling
Browse files Browse the repository at this point in the history
We want to iterate over the keys, not the key/value pairs.
  • Loading branch information
mlschroe committed Jun 27, 2017
1 parent 298974f commit 6b3559f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/bs_repserver
Original file line number Diff line number Diff line change
Expand Up @@ -2664,7 +2664,7 @@ sub kiwiurlmapper {
$url =~ s/\/+$//;
if (!$kiwiurlmapcache) {
$kiwiurlmapcache = {};
for my $prp (%{$BSConfig::prp_ext_map || {}}) {
for my $prp (sort keys %{$BSConfig::prp_ext_map || {}}) {
my $u = $BSConfig::prp_ext_map->{$prp};
$u =~ s/\/+$//;
$kiwiurlmapcache->{$u} = $prp;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bs_srcserver
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ sub kiwiurlmapper {
$url =~ s/\/+$//;
if (!$kiwiurlmapcache) {
$kiwiurlmapcache = {};
for my $prp (%{$BSConfig::prp_ext_map || {}}) {
for my $prp (sort keys %{$BSConfig::prp_ext_map || {}}) {
my $u = $BSConfig::prp_ext_map->{$prp};
$u =~ s/\/+$//;
$kiwiurlmapcache->{$u} = $prp;
Expand Down

0 comments on commit 6b3559f

Please sign in to comment.