Changeset 336
- Timestamp:
- 01/24/11 00:38:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Scan/RpmParser/Sources.pm
r333 r336 10 10 use Encode::Guess; 11 11 use Encode; 12 use MIME::Types; 12 13 13 14 sub run { … … 37 38 return 1; 38 39 } 39 $fname =~ /\.(gz|zip|bz2|xz|lzma)$/ and return 1; 40 41 if (my $plaintext = MIME::Types->new->mimeTypeOf($fname)) { 42 $plaintext->isBinary and return 1; 43 } 44 40 45 my $rawcontent = $file->get_content; 41 46 my $content;
Note: See TracChangeset
for help on using the changeset viewer.