Skip to content

Commit

Permalink
Merge pull request #492 from CPAN-API/mickey/removed_stat_gid_uid
Browse files Browse the repository at this point in the history
remove gid & uid from file stat
  • Loading branch information
oalders committed Jun 6, 2016
2 parents dab77b6 + 4841942 commit af7850c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Document/File.pm
Expand Up @@ -573,8 +573,8 @@ sub _build_slop {

=head2 stat
L<File::stat> info of the archive file. Contains C<mode>, C<uid>,
C<gid>, C<size> and C<mtime>.
L<File::stat> info of the archive file. Contains C<mode>,
C<size> and C<mtime>.
=cut

Expand Down
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Document/Release.pm
Expand Up @@ -89,8 +89,8 @@ See L<CPAN::Meta::Spec/license>.
=head2 stat
L<File::stat> info of the archive file. Contains C<mode>, C<uid>,
C<gid>, C<size> and C<mtime>.
L<File::stat> info of the archive file. Contains C<mode>,
C<size> and C<mtime>.
=head2 first
Expand Down
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Model/Release.pm
Expand Up @@ -186,7 +186,7 @@ sub _build_document {
my $self = shift;

my $st = $self->file->stat;
my $stat = { map { $_ => $st->$_ } qw(mode uid gid size mtime) };
my $stat = { map { $_ => $st->$_ } qw(mode size mtime) };

my $meta = $self->metadata;
my $dependencies = $self->dependencies;
Expand Down Expand Up @@ -309,7 +309,7 @@ sub _build_files {
my $relative = $child->relative($extract_dir);
my $stat = do {
my $s = $child->stat;
+{ map { $_ => $s->$_ } qw(mode uid gid size mtime) };
+{ map { $_ => $s->$_ } qw(mode size mtime) };
};
return if ( $relative eq q{.} );
( my $fpath = "$relative" ) =~ s/^.*?\///;
Expand Down
2 changes: 0 additions & 2 deletions lib/MetaCPAN/Types/Internal.pm
Expand Up @@ -40,8 +40,6 @@ coerce Blog, from HashRef, via { [$_] };
subtype Stat,
as Dict [
mode => Int,
uid => Int,
gid => Int,
size => Int,
mtime => Int
];
Expand Down

0 comments on commit af7850c

Please sign in to comment.