diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-09-11 15:13:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-09-11 15:13:52 +0000 |
commit | 6fba00b7fd656cbcfb28fde414ec73c1d532ca9a (patch) | |
tree | 8f444e9b7fe428f3caa77b3efe2ba611a8cdbc0e /Rpmdrake/rpmnew.pm | |
parent | 7318144585dce9df6bbce4e7d87ccf4ca4d26654 (diff) | |
download | rpmdrake-6fba00b7fd656cbcfb28fde414ec73c1d532ca9a.tar rpmdrake-6fba00b7fd656cbcfb28fde414ec73c1d532ca9a.tar.gz rpmdrake-6fba00b7fd656cbcfb28fde414ec73c1d532ca9a.tar.bz2 rpmdrake-6fba00b7fd656cbcfb28fde414ec73c1d532ca9a.tar.xz rpmdrake-6fba00b7fd656cbcfb28fde414ec73c1d532ca9a.zip |
(open_rpm_db,open_urpmi_db) split them from Rpmdrake::pkg into
Rpmdrake::open_db (needed for next commits in order not to increase
edit-urpm-sources startup time)
Diffstat (limited to 'Rpmdrake/rpmnew.pm')
-rw-r--r-- | Rpmdrake/rpmnew.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/rpmnew.pm b/Rpmdrake/rpmnew.pm index dbbd7c47..ef51ca4a 100644 --- a/Rpmdrake/rpmnew.pm +++ b/Rpmdrake/rpmnew.pm @@ -29,6 +29,7 @@ use common; use rpmdrake; use Rpmdrake::init; use Rpmdrake::pkg; +use Rpmdrake::open_db; use Rpmdrake::formatting; use Gtk2::SourceView; use File::MimeInfo::Magic; @@ -188,7 +189,7 @@ sub do_merge_if_needed() { my %pkg2rpmnew; my $wait = wait_msg(N("Please wait, searching...")); print "Searching .rpmnew and .rpmsave files...\n"; - Rpmdrake::pkg::open_rpm_db()->traverse(sub { + open_rpm_db()->traverse(sub { my $n = my_fullname($_[0]); $pkg2rpmnew{$n} = [ grep { m|^/etc| && (-r "$_.rpmnew" || -r "$_.rpmsave") } map { chomp_($_) } $_[0]->files ]; }); |