fixups
parent
42ac4ec009
commit
82f0facb62
|
@ -19,6 +19,7 @@ sub getsetup () { #{{{
|
|||
return
|
||||
omega_cgi => {
|
||||
type => "string",
|
||||
example => "/usr/lib/cgi-bin/omega/omega",
|
||||
description => "path to the omega cgi program",
|
||||
safe => 0, # external program
|
||||
rebuild => 0,
|
||||
|
@ -32,7 +33,7 @@ sub checkconfig () { #{{{
|
|||
}
|
||||
}
|
||||
|
||||
if (! exists $config{omega_cgi}) {
|
||||
if (! defined $config{omega_cgi}) {
|
||||
$config{omega_cgi}="/usr/lib/cgi-bin/omega/omega";
|
||||
}
|
||||
} #}}}
|
||||
|
|
|
@ -27,7 +27,6 @@ sub getsetup () { #{{{
|
|||
typographyattributes => {
|
||||
type => "string",
|
||||
example => "3",
|
||||
example => "tag",
|
||||
description => "Text::Typography attributes value",
|
||||
safe => 1,
|
||||
rebuild => 1,
|
||||
|
|
|
@ -12,7 +12,7 @@ hook(type => "checkconfig", id => "bzr", call => sub { #{{{
|
|||
if (! defined $config{diffurl}) {
|
||||
$config{diffurl}="";
|
||||
}
|
||||
if (exists $config{bzr_wrapper}) {
|
||||
if (length $config{bzr_wrapper}) {
|
||||
push @{$config{wrappers}}, {
|
||||
wrapper => $config{bzr_wrapper},
|
||||
wrappermode => (defined $config{bzr_wrappermode} ? $config{bzr_wrappermode} : "06755"),
|
||||
|
|
|
@ -21,7 +21,7 @@ hook(type => "checkconfig", id => "git", call => sub { #{{{
|
|||
if (! defined $config{gitmaster_branch}) {
|
||||
$config{gitmaster_branch}="master";
|
||||
}
|
||||
if (exists $config{git_wrapper}) {
|
||||
if (length $config{git_wrapper}) {
|
||||
push @{$config{wrappers}}, {
|
||||
wrapper => $config{git_wrapper},
|
||||
wrappermode => (defined $config{git_wrappermode} ? $config{git_wrappermode} : "06755"),
|
||||
|
|
|
@ -12,7 +12,7 @@ hook(type => "checkconfig", id => "mercurial", call => sub { #{{{
|
|||
if (! defined $config{diffurl}) {
|
||||
$config{diffurl}="";
|
||||
}
|
||||
if (exists $config{mercurial_wrapper}) {
|
||||
if (length $config{mercurial_wrapper}) {
|
||||
push @{$config{wrappers}}, {
|
||||
wrapper => $config{mercurial_wrapper},
|
||||
wrappermode => (defined $config{mercurial_wrappermode} ? $config{mercurial_wrappermode} : "06755"),
|
||||
|
|
|
@ -41,7 +41,7 @@ hook(type => "checkconfig", id => "monotone", call => sub { #{{{
|
|||
error("Monotone version too old, is $version but required 0.38");
|
||||
}
|
||||
|
||||
if (exists $config{mtn_wrapper}) {
|
||||
if (length $config{mtn_wrapper}) {
|
||||
push @{$config{wrappers}}, {
|
||||
wrapper => $config{mtn_wrapper},
|
||||
wrappermode => (defined $config{mtn_wrappermode} ? $config{mtn_wrappermode} : "06755"),
|
||||
|
|
|
@ -20,7 +20,7 @@ hook(type => "checkconfig", id => "svn", call => sub { #{{{
|
|||
$config{svnpath}=~s/\/$//;
|
||||
$config{svnpath}=~s/^\///;
|
||||
}
|
||||
if (exists $config{svn_wrapper}) {
|
||||
if (length $config{svn_wrapper}) {
|
||||
push @{$config{wrappers}}, {
|
||||
wrapper => $config{svn_wrapper},
|
||||
wrappermode => (defined $config{svn_wrappermode} ? $config{svn_wrappermode} : "04755"),
|
||||
|
|
|
@ -10,7 +10,7 @@ hook(type => "checkconfig", id => "tla", call => sub { #{{{
|
|||
if (! defined $config{diffurl}) {
|
||||
$config{diffurl}="";
|
||||
}
|
||||
if (exists $config{tla_wrapper}) {
|
||||
if (length $config{tla_wrapper}) {
|
||||
push @{$config{wrappers}}, {
|
||||
wrapper => $config{tla_wrapper},
|
||||
wrappermode => (defined $config{tla_wrappermode} ? $config{tla_wrappermode} : "06755"),
|
||||
|
|
|
@ -67,7 +67,7 @@ sub load ($) { # {{{
|
|||
}
|
||||
}
|
||||
|
||||
if (exists $config{cgi_wrapper}) {
|
||||
if (length $config{cgi_wrapper}) {
|
||||
push @{$config{wrappers}}, {
|
||||
cgi => 1,
|
||||
wrapper => $config{cgi_wrapper},
|
||||
|
|
|
@ -71,9 +71,6 @@ sub dumpvalues ($@) { #{{{
|
|||
push @ret, dumpline($key, $setup->{$key}, $info{type}, "");
|
||||
delete $setup->{$key};
|
||||
}
|
||||
elsif (exists $info{default} && defined $info{default}) {
|
||||
push @ret, dumpline($key, $info{default}, $info{type}, "#");
|
||||
}
|
||||
elsif (exists $info{example}) {
|
||||
push @ret, dumpline($key, $info{example}, $info{type}, "#");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue