aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/open_db.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-06 14:14:06 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-06 14:14:06 +0000
commita908eff5182f1774163abdc724b81885b4cdaebf (patch)
treee2abcb8a3dc933906d3605e41873813749658a33 /Rpmdrake/open_db.pm
parent6344550dcc74c84bf7c77c45ca329aa6458d55ee (diff)
downloadrpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar.gz
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar.bz2
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.tar.xz
rpmdrake-a908eff5182f1774163abdc724b81885b4cdaebf.zip
(build_tree,open_rpm_db,run_treeview_dialog,show_urpm_progress,Rpmdrake::widgets::new) kill warnings
Diffstat (limited to 'Rpmdrake/open_db.pm')
-rw-r--r--Rpmdrake/open_db.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm
index 864bfb4d..e8ff717b 100644
--- a/Rpmdrake/open_db.pm
+++ b/Rpmdrake/open_db.pm
@@ -28,6 +28,7 @@ use common;
use rpmdrake;
use URPM;
use urpm;
+use feature 'state';
use Exporter;
our @ISA = qw(Exporter);
@@ -40,7 +41,7 @@ sub open_rpm_db {
my $host;
log::explanations("opening the RPM database");
if ($::rpmdrake_options{parallel} && ((undef, $host) = @{$::rpmdrake_options{parallel}})) {
- my $done if 0;
+ state $done;
my $dblocation = "/var/cache/urpmi/distantdb/$host";
if (!$done || $o_force) {
print "syncing db from $host to $dblocation...";