aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-26 13:39:43 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-26 13:39:43 +0000
commit45e82c9a63d4d62a690120eec997787522a7f915 (patch)
tree8b323f9b2df44e0c7bd9ab61b146fa8ead10bf9c /rpmtools.pm
parent17b7820b1323fa3b5c281622fe249211d11a88c4 (diff)
downloadrpmtools-45e82c9a63d4d62a690120eec997787522a7f915.tar
rpmtools-45e82c9a63d4d62a690120eec997787522a7f915.tar.gz
rpmtools-45e82c9a63d4d62a690120eec997787522a7f915.tar.bz2
rpmtools-45e82c9a63d4d62a690120eec997787522a7f915.tar.xz
rpmtools-45e82c9a63d4d62a690120eec997787522a7f915.zip
*** empty log message ***
Diffstat (limited to 'rpmtools.pm')
-rw-r--r--rpmtools.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmtools.pm b/rpmtools.pm
index 2154e84..5eb9407 100644
--- a/rpmtools.pm
+++ b/rpmtools.pm
@@ -286,7 +286,7 @@ sub compute_depslist {
#- give an id to each packages, start from number of package already
#- registered in depslist.
my $global_id = scalar @{$params->{depslist}};
- foreach (sort { $ordered{$b->{name}} <=> $ordered{$a->{name}} } @info) {
+ foreach (sort { $ordered{$b->{name}} <=> $ordered{$a->{name}} || $a->{name} cmp $b->{name} } @info) {
$_->{id} = $global_id++;
}