Software-Packager-Aix
view release on metacpan or search on metacpan
lib/Software/Packager/Aix.pm view on Meta::CPAN
my $mode = $object->mode();
my $user = $object->user();
my $group = $object->group();
if ($type =~ /directory/i)
{
unless (-d $destination)
{
mkpath($destination, 0, oct($mode));
}
unless (system("chown $user $destination") eq 0)
{
warn "Error: Couldn't set the user to \"$user\" for \"$destination\": $!\n";
return undef;
}
unless (system("chgrp $group $destination") eq 0)
{
warn "Error: Couldn't set the group to \"$group\" for \"$destination\": $!\n";
return undef;
}
}
lib/Software/Packager/Aix.pm view on Meta::CPAN
{
my $directory = dirname($destination);
unless (-d $directory)
{
mkpath($directory, 0, 0755);
}
unless (copy($source, $destination))
{
warn "Error: Couldn't copy $source to $destination: $!\n";
}
unless (system("chown $user $destination") eq 0)
{
warn "Error: Couldn't set the user to \"$user\" for \"$destination\": $!\n";
return undef;
}
unless (system("chgrp $group $destination") eq 0)
{
warn "Error: Couldn't set the group to \"$group\" for \"$destination\": $!\n";
return undef;
}
unless (system("chmod $mode $destination") eq 0)
( run in 0.505 second using v1.01-cache-2.11-cpan-5511b514fd6 )