r9818 - in /trunk/libxml-sax-perl: update-perl-sax-parsers update-perl-sax-parsers.8
ntyni-guest at users.alioth.debian.org
ntyni-guest at users.alioth.debian.org
Tue Nov 27 18:57:39 UTC 2007
Author: ntyni-guest
Date: Tue Nov 27 18:57:39 2007
New Revision: 9818
URL: http://svn.debian.org/wsvn/?sc=1&rev=9818
Log:
default priority is 50 unless --directory was specified
Modified:
trunk/libxml-sax-perl/update-perl-sax-parsers
trunk/libxml-sax-perl/update-perl-sax-parsers.8
Modified: trunk/libxml-sax-perl/update-perl-sax-parsers
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/update-perl-sax-parsers?rev=9818&op=diff
==============================================================================
--- trunk/libxml-sax-perl/update-perl-sax-parsers (original)
+++ trunk/libxml-sax-perl/update-perl-sax-parsers Tue Nov 27 18:57:39 2007
@@ -35,7 +35,7 @@
my $update = '';
my $version = '';
my $ucf;
-my $priority = 50; # default priority
+my $priority;
## ----------------------------------------------------------------------
if ( ! GetOptions(
@@ -75,6 +75,11 @@
## ----------------------------------------------------------------------
print STDERR "$name: test mode - Perl SAX parsers file will not be updated\n"
if $test && ! $quiet;
+
+## ----------------------------------------------------------------------
+# default priority is 50 unless --directory was specified
+# with --directory, default to 0 (no priority in the filenames)
+$priority = (@directory ? 0 : 50) if not defined $priority;
## ----------------------------------------------------------------------
my $PARSER_DETAILS_DIR = "/var/lib/libxml-sax-perl/ParserDetails.d";
Modified: trunk/libxml-sax-perl/update-perl-sax-parsers.8
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/update-perl-sax-parsers.8?rev=9818&op=diff
==============================================================================
--- trunk/libxml-sax-perl/update-perl-sax-parsers.8 (original)
+++ trunk/libxml-sax-perl/update-perl-sax-parsers.8 Tue Nov 27 18:57:39 2007
@@ -84,7 +84,7 @@
.TP
.B --priority XX
Specifies the priority of the SAX parser module to be added
-removed. The default value is 50. The priority will be encoded
+removed. The priority will be encoded
to the filename of the ParserDetails.d entry. See the PARSER PRIORITIES
section below.
@@ -92,6 +92,10 @@
.B update-perl-sax-parsers .
Use the value "0" to disable the encoding and match the behaviour
of earlier versions of the script.
+
+The default priority value is 50, unless
+.B --directory
+was specified, in which case the default is 0 (disabled.)
.TP
.B --ucf X
Forcibly enable (X != 0) or disable (X = 0) of
More information about the Pkg-perl-cvs-commits
mailing list