diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-08-24 16:14:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-08-24 16:14:17 +0000 |
commit | 749da7f388db2f6f37e2b238f34aa4b39384cb4a (patch) | |
tree | 382f795d186eb4fa886784c85fa0f6016061de30 /Rpmdrake/pkg.pm | |
parent | 44ba14a0d18d9802658a468b97963297cf154344 (diff) | |
download | rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar.gz rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar.bz2 rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.tar.xz rpmdrake-749da7f388db2f6f37e2b238f34aa4b39384cb4a.zip |
(version_release) factorize some code
also needed for next commit
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r-- | Rpmdrake/pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 6889d5f2..c8073d09 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -195,7 +195,7 @@ sub find_installed_version { # FIXME: make it faster # 1) reuse $db if set # 2) s/traverse_tag/traverse_tag_find/ and time it - open_rpm_db()->traverse_tag('name', [ $p->name ], sub { push @version, $_[0]->version . '-' . $_[0]->release }); + open_rpm_db()->traverse_tag('name', [ $p->name ], sub { push @version, version_release($_[0])}); @version ? join(',', sort @version) : N("(none)"); } |