Skip to content

Commit

Permalink
Merge pull request #11 from yast/ycpdoc_sorting
Browse files Browse the repository at this point in the history
ycpdoc - improved generating index file
  • Loading branch information
lslezak committed Jun 27, 2013
2 parents 8ed21d9 + 9f3bfba commit bbe9de3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2.24.0
2.24.1
8 changes: 8 additions & 0 deletions package/yast2-devtools.changes
@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jun 27 06:44:19 UTC 2013 - lslezak@suse.cz

- ycpdoc - improved generating index file, the same functions are
additionaly sorted by source file to avoid random order in the
output (fixes testsuite failure after upgrading to perl-5.18)
- 2.24.1

-------------------------------------------------------------------
Mon Apr 8 10:41:43 UTC 2013 - jreidinger@suse.com

Expand Down
2 changes: 1 addition & 1 deletion ycpdoc/src/ycpdoc
Expand Up @@ -1191,7 +1191,7 @@ sub create_index ($)
push @entries, @{$f->{"provides"} || []};
}

for my $one ( sort {$a->{"signature"} cmp $b->{"signature"}} @entries )
for my $one ( sort { ($a->{"signature"} cmp $b->{"signature"}) || ($a->{"file"} cmp $b->{"file"}) } @entries )
{
if($one->{"kind"} ne "info")
{
Expand Down

0 comments on commit bbe9de3

Please sign in to comment.