aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-06-13 12:48:41 +0000
committerThierry Vignaud <tv@mandriva.org>2007-06-13 12:48:41 +0000
commitf629962c6f66d05b5060cb25697cd0a25a54f45a (patch)
treeb1846ddefe107e267ad9ffa1c77fdba62f1e6b7a
parent9cd324937a62f1feb597472acb79a23048dbaa35 (diff)
downloadrpmdrake-f629962c6f66d05b5060cb25697cd0a25a54f45a.tar
rpmdrake-f629962c6f66d05b5060cb25697cd0a25a54f45a.tar.gz
rpmdrake-f629962c6f66d05b5060cb25697cd0a25a54f45a.tar.bz2
rpmdrake-f629962c6f66d05b5060cb25697cd0a25a54f45a.tar.xz
rpmdrake-f629962c6f66d05b5060cb25697cd0a25a54f45a.zip
read config before warning if running as user in order to fix error
when trying to save config (#31367)
-rwxr-xr-xrpmdrake10
1 files changed, 6 insertions, 4 deletions
diff --git a/rpmdrake b/rpmdrake
index 31cd5fee..44d3472d 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -49,9 +49,6 @@ our $w;
my $treeview_dialog_run = 0;
our $statusbar;
-warn_about_user_mode();
-
-open_db();
sub do_search($$$$$$$) {
my ($find_entry, $tree, $tree_model, $options, $current_search_type, $urpm, $pkgs) = @_;
@@ -529,9 +526,14 @@ sub run_treeview_dialog {
# -=-=-=---=-=-=---=-=-=-- main -=-=-=---=-=-=---=-=-=-
+readconf();
+
+warn_about_user_mode();
+
+open_db();
+
do_merge_if_needed();
-readconf();
init();