[Rt-commit] rt branch, master, updated. rt-4.0.4-374-g5da5045

Kevin Falcone falcone at bestpractical.com
Fri Jan 20 15:52:51 EST 2012


The branch, master has been updated
       via  5da5045d0b0a7222054bfe80cb2cdec165e0f815 (commit)
       via  517c0816e73d0cb5d2b1bce52fd4983152cf16c6 (commit)
       via  f429424665ed5d57fdd2c107be373a5c57c2327c (commit)
       via  359014428439321cf8cad00897f3fd67605d49fe (commit)
       via  12a76fef600c5959fcd0ad04d71bfe07c88c8fda (commit)
       via  89b6493297c005ebc00f050bddcaa3e7ce8c3fac (commit)
       via  d43569db3c6553c3c41dc2a7a50dad2a8d3acbf5 (commit)
       via  685d8c8614f752be8a127d54f426ffc54fcdc979 (commit)
      from  a1f5b0c7d23df43d0e54dac16a1cd7e90523308a (commit)

Summary of changes:
 sbin/rt-validator.in |  218 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 201 insertions(+), 17 deletions(-)

- Log -----------------------------------------------------------------
commit 5da5045d0b0a7222054bfe80cb2cdec165e0f815
Merge: a1f5b0c 517c081
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Jan 20 15:49:50 2012 -0500

    Merge branch '4.2/links-in-validator'
    
    Conflicts:
    	sbin/rt-validator.in

diff --cc sbin/rt-validator.in
index 468b7b0,de334c0..fce7b55
--- a/sbin/rt-validator.in
+++ b/sbin/rt-validator.in
@@@ -74,18 -82,39 +74,18 @@@ GetOptions
      'resolve',
      'force',
      'verbose|v',
 +    'help|h',
+     'links-only',
  );
  
 -usage() unless $opt{'check'};
 -usage_warning() if $opt{'resolve'} && !$opt{'force'};
 -
 -sub usage {
 -    print STDERR <<END;
 -Usage: $0 options
 -
 -Options:
 -
 -    $0 --check
 -    $0 --check --verbose
 -    $0 --check --verbose --resolve
 -    $0 --check --verbose --resolve --force
 -
 ---check      - is mandatory argument, you can use -c, as well.
 ---verbose    - print additional info to STDOUT
 ---resolve    - enable resolver that can delete or create some records
 ---force      - resolve without asking questions
 ---links-only - only run the Link validation routines, useful if you changed your
 -               Organization
 -
 -Description:
 -
 -This script checks the integrity of records in RT's DB. May be used to delete
 -some invalid records or ressurect accidentally deleted records.
 -
 -END
 -    exit 1;
 +if ( $opt{help} || !$opt{check} ) {
 +    require Pod::Usage;
 +    print Pod::Usage::pod2usage( { verbose => 2 } );
 +    exit;
  }
  
 +usage_warning() if $opt{'resolve'} && !$opt{'force'};
 +
- 
  sub usage_warning {
      print <<END;
  This utility can fix some issues with DB by creating or updating. In some
@@@ -1128,47 -1299,3 +1308,51 @@@ sub prompt_integer 
  } }
  
  1;
 +
 +__END__
 +
 +=head1 NAME
 +
 +rt-validator - check and correct validity of records in RT's database
 +
 +=head1 SYNOPSIS
 +
 +    rt-validator --check 
 +    rt-validator --check --verbose
 +    rt-validator --check --verbose --resolve
 +    rt-validator --check --verbose --resolve --force
 +
 +=head1 DESCRIPTION
 +
 +This script checks integrity of records in RT's DB. May delete some invalid
 +records or ressurect accidentally deleted.
 +
 +=head1 OPTIONS
 +
 +=over
 +
 +=item check
 +
 +    mandatory.
 +    
 +    it's equall to -c
 +
 +=item verbose
 +
 +    print additional info to STDOUT
 +    it's equall to -v
 +
 +=item resolve
 +
 +    enable resolver that can delete or create some records
 +
 +=item force
 +
 +    resolve without asking questions
 +
++=item links-only 
++
++    only run the Link validation routines, useful if you changed your Organization
++
 +=back
 +

-----------------------------------------------------------------------


More information about the Rt-commit mailing list