[Koha-bugs] [Bug 10159] koha-rebuild-zebra error handling

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 30 17:16:32 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10159

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 17846
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17846&action=edit
Bug 10159 - koha-rebuild-zebra error handling

This patch makes koha-rebuild-zebra:
- Check for the existence of the instance
- Handle arbitrary amount of instance parameters
- Capture -a and -b (which made the script rebuild twice the chosen DB). It
adds the extended version (--authorities and --biblios respectively) of the
option switch. This makes the -a and -b switches work as "only do authorities"
(or viceversa). They can be used concurrently, which is the default behaviour
when no switch is provided.
- Handle -v (and --verbose) as koha-rebuild-zebra options, to ease the use for
non-techie users.
- The rebuild_zebra.pl is wrapped inside an IF to return error values if we
ever make rebuild_zebra.pl return error codes (this is pointed in the code).
- Added -h/--help switches and an 'usage' output :-D Please provide patches for
any wording issues, or contact me to fix it.

To test:
- Apply the patch and create your packages (or just use the script from your
branch)
- Run it in this scenarios / options
  - -h/--help to see the available option switches
  - Mix them with one or more instances, of which some could be fake
  - try -a/--authorities and -b/--biblios in all possible combinations
  - try -v/--verbose works

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list