From 3a53d7dc9f1a8fddf077810743448afe6854dee3 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Wed, 17 Sep 2008 13:46:12 +0000 Subject: fix bug 42326, remove spec file --- drakpxelinux.pl | 12 +++++----- drakpxelinux.spec | 66 ------------------------------------------------------- 2 files changed, 7 insertions(+), 71 deletions(-) delete mode 100644 drakpxelinux.spec diff --git a/drakpxelinux.pl b/drakpxelinux.pl index 9ece3c1..9e32697 100644 --- a/drakpxelinux.pl +++ b/drakpxelinux.pl @@ -1030,11 +1030,13 @@ sub refresh_menu() { $menu_combo->signal_connect(changed => sub { my $model_profiles = $profiles->get_model; my $iter = $profiles->get_selection->get_selected; - ($config_file, $help_file) = network::pxe::get_pxelinux_profile_path($model_profiles->get($iter, 0), 'boot'); - my $new_default = $menu_combo->get_active_text; - substInFile { - s/DEFAULT.*/DEFAULT $new_default/; - } $config_file; + if ($iter) { + ($config_file, $help_file) = network::pxe::get_pxelinux_profile_path($model_profiles->get($iter, 0), 'boot'); + my $new_default = $menu_combo->get_active_text; + substInFile { + s/DEFAULT.*/DEFAULT $new_default/; + } $config_file; + } }); } diff --git a/drakpxelinux.spec b/drakpxelinux.spec deleted file mode 100644 index fb63eee..0000000 --- a/drakpxelinux.spec +++ /dev/null @@ -1,66 +0,0 @@ -Summary: PXE default file configurator -Name: drakpxelinux -Version: 1.2.0 -Release: %mkrel 13 -License: GPLv2+ -Group: System/Configuration/Other -URL: http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/drakpxelinux/ -Source0: %{name}-%{version}.tar.bz2 -Requires: perl-Gtk2, perl-MDK-Common, pxe, drakxtools, tftp-server, xinetd, pxelinux -Requires(post): desktop-file-utils -Requires(postun): desktop-file-utils -Buildarch: noarch -BuildRoot: %{_tmppath}/%{name}-buildroot - -%description -Quick configuration of PXE menu parameters. - -%prep - -%setup -q - -%build - -%install -rm -rf %{buildroot} - -make prefix=%{buildroot} install - -# XDG menu -install -d %{buildroot}%{_datadir}/applications -cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF -[Desktop Entry] -Name=Drakpxelinux -Comment=Mandriva Linux Pxelinux configurator -Exec=%{_sbindir}/%{name} -Icon=configuration_section -Terminal=false -Type=Application -Categories=GTK;Settings;X-Mandriva-CrossDesktop; -EOF - -#install lang -%find_lang %{name} - -%post -%update_menus -%update_desktop_database - -%postun -%clean_menus -%clean_desktop_database - -%clean -rm -rf %{buildroot} - -%files -f %{name}.lang -%defattr(-,root,root) -%doc default TODO COPYING -%{_sbindir}/%{name} -%{_sbindir}/deployd -%{_sbindir}/deploy_get_autoinst.pl -%{_sysconfdir}/xinetd.d/deployd -%{_sysconfdir}/xinetd.d/deploy_get_autoinst -#%{_datadir}/%{name}* -%{_datadir}/applications/mandriva-%{name}.desktop - -- cgit v1.2.1