Skip to content
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

add changes2spec Selftest + fix boo#1077145 #424

Merged
merged 3 commits into from Jan 24, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
changelog2spec: sort changes list (boo#1077145)
to avoid perl hash randomness influencing results

This partially reverts commit 393c490.
  • Loading branch information
bmwiedemann committed Jan 23, 2018
commit f50a8c339470323f497809349155f0262ca09809
1 change: 1 addition & 0 deletions changelog2spec
Expand Up @@ -92,6 +92,7 @@ sub map_changes
my %changes = map {/^((?:_service:.*:)?(.*?))$/ ? ($2, $1) : ($_, $_)} @changes;
@changes = keys %changes;
return undef unless @changes; # nothing to do
@changes = sort {length($a) <=> length($b) || $a cmp $b} @changes;
if (@changes > 1) {
while ($file ne '') {
my @c = grep {/\Q${file}.changes\E/} @changes;
Expand Down