aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-09 16:38:19 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-09 16:38:19 +0000
commita1f05bcd211149b4709129bdd7bb4c8669d2ce0c (patch)
treefbb430a3c02cac800155bd9f032b88e9365f108b
parent6d2ed7da23888424e8c884f2751248292d8e448d (diff)
downloadrpmdrake-a1f05bcd211149b4709129bdd7bb4c8669d2ce0c.tar
rpmdrake-a1f05bcd211149b4709129bdd7bb4c8669d2ce0c.tar.gz
rpmdrake-a1f05bcd211149b4709129bdd7bb4c8669d2ce0c.tar.bz2
rpmdrake-a1f05bcd211149b4709129bdd7bb4c8669d2ce0c.tar.xz
rpmdrake-a1f05bcd211149b4709129bdd7bb4c8669d2ce0c.zip
Add a new command-line option, --search=pkg, to run search at startup
(and update requirement on drakxtools)
-rwxr-xr-xrpmdrake3
-rw-r--r--rpmdrake.spec2
2 files changed, 4 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index eb9f7598..a91eb6a4 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -37,6 +37,7 @@ BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk
--pkg-nosel=pkg1,.. show only these packages
--pkg-sel=pkg1,.. preselect these packages
--root force to run as root
+ --search=pkg run search for "pkg"
), $basename->($0);
exit 0;
};
@@ -1173,6 +1174,7 @@ Is it ok to continue?",
$find_entry->grab_focus;
$w->{rwindow}->set_default_size($typical_width*2.7, 500) if !$::isEmbedded;
+ $find_entry->set_text($options{search}[0]) if $options{search};
$w->{rwindow}->show_all;
$options->{widgets} = {
@@ -1184,6 +1186,7 @@ Is it ok to continue?",
info => $info,
status => $status,
};
+ $options->{init_callback} = $find_callback if $options{search};
ask_browse_tree_info_given_widgets($options);
}
diff --git a/rpmdrake.spec b/rpmdrake.spec
index 5fd1cce1..a87ef1e4 100644
--- a/rpmdrake.spec
+++ b/rpmdrake.spec
@@ -19,7 +19,7 @@ Summary: Mandrakelinux graphical front end for choosing packages for installion/
Requires: perl-MDK-Common >= 1.1.18-2mdk
Requires: urpmi >= 4.6.8-1mdk
Requires: perl-URPM >= 1.03-1mdk
-Requires: drakxtools >= 10.1-11mdk
+Requires: drakxtools >= 10.2-0.22mdk
Requires: rpmtools >= 5.0.5
Requires: packdrake >= 5.0.5
Requires: perl-Gtk2 >= 1.054-1mdk