From a1f05bcd211149b4709129bdd7bb4c8669d2ce0c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 9 Feb 2005 16:38:19 +0000 Subject: Add a new command-line option, --search=pkg, to run search at startup (and update requirement on drakxtools) --- rpmdrake | 3 +++ rpmdrake.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1