summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/Admin/spool.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-03-16 10:56:00 +0000
committerfukachan <fukachan>2003-03-16 10:56:00 +0000
commit71855ebead497b37b40ed8381be775dfd8eb4966 (patch)
tree7eabfc5e5a0ba4a1a8dc473aa1611148932ec21d /fml/lib/FML/Command/Admin/spool.pm
parentf6d9850ac66341e591c54a14eab67a54e9a8539c (diff)
downloadfml8-71855ebead497b37b40ed8381be775dfd8eb4966.tar.gz
fml8-71855ebead497b37b40ed8381be775dfd8eb4966.tar.bz2
fml8-71855ebead497b37b40ed8381be775dfd8eb4966.zip
need no giant lock.
FML::Spool -> FML::Article::Spool fix argument handling.
Diffstat (limited to 'fml/lib/FML/Command/Admin/spool.pm')
-rw-r--r--fml/lib/FML/Command/Admin/spool.pm13
1 files changed, 7 insertions, 6 deletions
diff --git a/fml/lib/FML/Command/Admin/spool.pm b/fml/lib/FML/Command/Admin/spool.pm
index ab5d42f4..cf451499 100644
--- a/fml/lib/FML/Command/Admin/spool.pm
+++ b/fml/lib/FML/Command/Admin/spool.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: spool.pm,v 1.2 2003/03/14 06:53:22 fukachan Exp $
+# $FML: spool.pm,v 1.1 2003/03/15 09:07:04 fukachan Exp $
#
package FML::Command::Admin::spool;
@@ -49,7 +49,7 @@ sub new
# Arguments: none
# Side Effects: none
# Return Value: NUM( 1 or 0)
-sub need_lock { 1;}
+sub need_lock { 0;}
# Descriptions: subcommand dispatch table for "spool" command.
@@ -59,8 +59,9 @@ sub need_lock { 1;}
sub process
{
my ($self, $curproc, $command_args) = @_;
- my $config = $curproc->config();
- my $fp = $command_args->{ comsubname } || 'status';
+ my $config = $curproc->config();
+ my $options = $command_args->{ options };
+ my $fp = $options->[ 0 ] || 'status';
# XXX-TODO: makefml $ml spool ... what arguments is appropriate ?
# use $dst_dir as $src_dir if --srcdir=DIR not specified.
@@ -76,8 +77,8 @@ sub process
# output channel (we suppose only makefml here).
$command_args->{ _output_channel } = \*STDOUT;
- use FML::Spool;
- my $spool = new FML::Spool $curproc;
+ use FML::Article::Spool;
+ my $spool = new FML::Article::Spool $curproc;
if ($spool->can($fp)) {
$spool->$fp($curproc, $command_args);
}