Hello community, here is the log from the commit of package kexec-tools checked in at Mon Oct 6 19:04:18 CEST 2008. -------- --- kexec-tools/kexec-tools.changes 2008-08-27 12:17:50.000000000 +0200 +++ /mounts/work_src_done/STABLE/kexec-tools/kexec-tools.changes 2008-10-06 17:34:13.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Oct 06 17:32:56 CEST 2008 - bwalle@suse.de + +- Implement -h (help) option (bnc#432386). +- Remove documentation of -o (options) option that never existed. + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kexec-tools.spec ++++++ --- /var/tmp/diff_new_pack.L31720/_old 2008-10-06 18:59:33.000000000 +0200 +++ /var/tmp/diff_new_pack.L31720/_new 2008-10-06 18:59:33.000000000 +0200 @@ -29,7 +29,7 @@ AutoReqProv: on Summary: Tools for fast kernel loading Version: 2.0.0 -Release: 24 +Release: 36 Source: %{name}-%{version}.tar.bz2 Source1: kexec-bootloader Source2: kexec-bootloader.8.txt @@ -126,6 +126,9 @@ %endif %changelog +* Mon Oct 06 2008 bwalle@suse.de +- Implement -h (help) option (bnc#432386). +- Remove documentation of -o (options) option that never existed. * Wed Aug 27 2008 bwalle@suse.de - only install and build /etc/init.d/kexec with openSUSE 11.1 / SLES 11 and later ++++++ kexec-bootloader ++++++ --- kexec-tools/kexec-bootloader 2008-08-15 10:14:02.000000000 +0200 +++ /mounts/work_src_done/STABLE/kexec-tools/kexec-bootloader 2008-10-06 17:34:13.000000000 +0200 @@ -25,6 +25,7 @@ my $GRUBDIR = "/boot/grub"; my $GRUBDEFAULT = "$GRUBDIR/default"; my $debug = FALSE; +my $showHelp = FALSE; # # Prints the given stuff (variable number of arguments) if debugging has @@ -38,6 +39,18 @@ } # }}} # +# Displays help. Does not exit. +sub show_help() +{ + print STDERR "kexec-bootloader\n"; + print STDERR "Loads kexec kernel from bootloader configuration.\n\n"; + print STDERR "Options:\n"; + print STDERR " -h | --help Shows that help message.\n"; + print STDERR " -D | --debug Prints debugging information.\n"; +} + + +# # Returns the value stored with "grubonce". If no value has been stored # or the /boot/grub/default file is not readable, then -1 is returned. sub get_grubonce() # {{{ @@ -78,12 +91,17 @@ sub parse_options() # {{{ { GetOptions( - "D|debug" => \$debug + "D|debug" => \$debug, + "h|help" => \$showHelp ); } # }}} parse_options(); +if ($showHelp) { + show_help(); + exit(0); +} Bootloader::Tools::InitLibrary(); my $loader = Bootloader::Tools::GetBootloader(); my $default = -1; ++++++ kexec-bootloader.8.txt ++++++ --- kexec-tools/kexec-bootloader.8.txt 2008-08-15 10:14:02.000000000 +0200 +++ /mounts/work_src_done/STABLE/kexec-tools/kexec-bootloader.8.txt 2008-10-06 17:34:13.000000000 +0200 @@ -55,9 +55,6 @@ *-D* | *--debug*:: Prints debugging output. - -*-o* _options_ | *--options* _options_:: - Specify additional _options_ passed to *kexec*(8). Return Value ------------ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de