}
}
close($fh);
-
+
return $res;
}
if (ref ($cmd) eq 'ARRAY') {
unshift @$cmd, 'lxc-attach', '-n', $veid, '--rcfile', $conffile, '--clear-env', '--', 'defenv';
- $self->run_command ($cmd, $input);
+ $self->run_command($cmd, $input);
} else {
- $self->run_command ("lxc-attach -n $veid --rcfile $conffile --clear-env -- defenv $cmd", $input);
+ $self->run_command("lxc-attach -n $veid --rcfile $conffile --clear-env -- defenv $cmd", $input);
}
}
}
my $closure = {};
- $required = $self->closure ($closure, $required);
- $important = $self->closure ($closure, $important);
+ $required = $self->closure($closure, $required);
+ $important = $self->closure($closure, $important);
if (!$opts->{minimal}) {
push @$standard, 'xbase-clients';
- $standard = $self->closure ($closure, $standard);
+ $standard = $self->closure($closure, $standard);
}
# test if we have all 'ubuntu-minimal' and 'ubuntu-standard' packages
$self->ve_divert_add ("/sbin/udevd");
if ($suite eq 'etch') {
- # disable apache2 startup
- write_file ("NO_START=1\n", "$rootdir/etc/default/apache2");
+ write_file ("NO_START=1\n", "$rootdir/etc/default/apache2"); # disable apache2 startup
}
$self->logmsg ("configure required packages\n");
my $instpkgs = $self->read_installed ();
my $closure = {};
- __record_provides ($pkginfo, $closure, [keys %$instpkgs]);
+ __record_provides($pkginfo, $closure, [keys $instpkgs->%*]);
return $self->closure ($closure, $pkglist);
}
my $rootdir = $self->{rootfs};
my $suite = $self->{config}->{suite};
-
+
my $ver = '5.0';
if ($suite eq 'squeeze') {
$ver = '5.1';