Augment previous commit.
authorMikko Värri <vmj@linuxbox.fi>
Tue, 27 Sep 2011 01:24:02 +0000 (04:24 +0300)
committerMikko Värri <vmj@linuxbox.fi>
Tue, 27 Sep 2011 01:24:02 +0000 (04:24 +0300)
lib/Slackware/Package.pm

index e2397a6..4e0f3ab 100644 (file)
@@ -246,13 +246,7 @@ sub load_inc_size {
 sub load_file_types {
     my $self = shift;
     for my $file ($self->files) {
-        next if $file->is_dir;
-        next unless $file->exists;
-        next if $file->name =~ m[/include/];
-        next if $file->name =~ m[/man/];
-        next if $file->name =~ m[/doc/];
-
-        $self->add_files_by_type($file->type, $file);
+        $self->add_files_by_type($file->type, $file) if $file->has_type;
     }
 }