summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/part_pkg.cgi
diff options
context:
space:
mode:
authorivan <ivan>2008-07-09 02:30:45 +0000
committerivan <ivan>2008-07-09 02:30:45 +0000
commit3b39e6d2f5b8e5e0be175d8f0810cdd66ed66d96 (patch)
tree886b7b6d7038342fd78799712df7f45a10f7ba05 /httemplate/edit/process/part_pkg.cgi
parent64e7037dd42a240f095e76ea7cba007dd1340bc5 (diff)
don't require an agent type to be specified when editing a disabled package
Diffstat (limited to 'httemplate/edit/process/part_pkg.cgi')
-rwxr-xr-xhttemplate/edit/process/part_pkg.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi
index faaedf9db..91ae97132 100755
--- a/httemplate/edit/process/part_pkg.cgi
+++ b/httemplate/edit/process/part_pkg.cgi
@@ -38,10 +38,10 @@ my $precheck_callback = sub {
push @agents, $1 if $1;
}
return "At least one agent type must be specified."
- unless( scalar(@agents) ||
- $cgi->param('clone') && $cgi->param('clone') =~ /^\d+$/ ||
- !$cgi->param('pkgpart') && $conf->exists('agent-defaultpkg')
- );
+ unless scalar(@agents)
+ || ( $cgi->param('clone') && $cgi->param('clone') =~ /^\d+$/ )
+ || ( !$cgi->param('pkgpart') && $conf->exists('agent-defaultpkg') )
+ || $cgi->param('disabled');
return '';