aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.pm
diff options
context:
space:
mode:
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 0dd885d..245be20 100644
--- a/rpmtools.pm
+++ b/rpmtools.pm
@@ -547,7 +547,7 @@ sub version_compare {
sub get_packages_installed {
my ($prefix, $packages, $names, $flags) = @_; $flags ||= [ qw(name version release)];
my $db = db_open($prefix);
- my $count = db_traverse_names($db, $flags, $names, sub { my ($p) = @_; push @$packages, $p; });
+ my $count = db_traverse_tag($db, "name", $names, $flags, sub { my ($p) = @_; push @$packages, $p; });
db_close($db);
$count;
}