pf-tools/pf-tools: forcereload -> usecache
parmelan-guest at users.alioth.debian.org
parmelan-guest at users.alioth.debian.org
Tue Dec 9 14:02:57 UTC 2014
details: http://hg.debian.org/hg/pf-tools/pf-tools/rev/1065da713a5d
changeset: 1364:1065da713a5d
user: shad
date: Tue Dec 09 15:00:31 2014 +0100
description:
forcereload -> usecache
diffstat:
sbin/update-config | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diffs (50 lines):
diff -r 76dad09b8e63 -r 1065da713a5d sbin/update-config
--- a/sbin/update-config Mon Dec 08 18:08:39 2014 +0100
+++ b/sbin/update-config Tue Dec 09 15:00:31 2014 +0100
@@ -36,18 +36,19 @@
my $program = basename $PROGRAM_NAME;
my @options_specs = (
- 'config|c=s', 'branch=s', 'debug|d', 'diff|u',
- 'forcereload|f', 'forcecolor', 'help', 'host|h=s',
- 'install|i', 'noaction', 'nocolor', 'noupdate',
- 'pkg_type|p=s', 'quiet|q', 'section=s', 'simul|s',
- 'site=s', 'store=s', 'verbose|v',
+ 'config|c=s', 'branch=s', 'debug|d', 'diff|u',
+ 'usecache|u', 'forcecolor', 'help', 'host|h=s',
+ 'install|i', 'noaction', 'nocolor', 'noupdate',
+ 'pkg_type|p=s', 'quiet|q', 'section=s', 'simul|s',
+ 'site=s', 'store=s', 'verbose|v',
);
my $options = {
- help => 0,
- host => hostname,
- section => [],
- store => q{},
+ help => 0,
+ host => hostname,
+ section => [],
+ store => q{},
+ usecache => 0,
};
##################################
@@ -82,7 +83,7 @@
my ( $PF_CONFIG, $GLOBAL_STRUCT ) = init_tools(
$options->{'host'}, $options->{'config'},
- $options->{'store'}, $options->{'forcereload'}
+ $options->{'store'}, !$options->{'usecache'}
);
if ( !$PF_CONFIG->{'features'}->{'update'} ) {
@@ -116,7 +117,7 @@
--site : site for hostname (optional)
-c --config : path to access to pf-tools.conf file (optional)
--store : path to storable file which contains gloabl configuration
- -f --forcereload : forcing the reload of global structure by parsing all configuration files from repository
+ -u --usecache : use cache of instead of parsing all configuration files from repository
-d --debug : print debug info
-u --diff : diff files, versions, mountpoints, links => --simul
-q --quiet : start in quiet mode
More information about the pf-tools-commits
mailing list