diff options
author | Michael Scherer <misc@mandriva.com> | 2006-01-17 10:56:18 +0000 |
---|---|---|
committer | Michael Scherer <misc@mandriva.com> | 2006-01-17 10:56:18 +0000 |
commit | f0b538539e5705ef987c8d0d7a2645d6d5f88ba0 (patch) | |
tree | 5bf09ed6b62dc35e3a373374d11b3b2405bd1f25 | |
parent | 7ee956c50f53653f6de0504295b81894b843db70 (diff) | |
download | bootsplash-f0b538539e5705ef987c8d0d7a2645d6d5f88ba0.tar bootsplash-f0b538539e5705ef987c8d0d7a2645d6d5f88ba0.tar.gz bootsplash-f0b538539e5705ef987c8d0d7a2645d6d5f88ba0.tar.bz2 bootsplash-f0b538539e5705ef987c8d0d7a2645d6d5f88ba0.tar.xz bootsplash-f0b538539e5705ef987c8d0d7a2645d6d5f88ba0.zip |
- use a dedicated module instead of running the file command, in order to fix gtkhtml downloading problem
( as the regexp was also matching on the name ), problem spoted by goetz.
-rwxr-xr-x | rpmbuildupdate | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmbuildupdate b/rpmbuildupdate index b8bd3c6..9d64ebc 100755 --- a/rpmbuildupdate +++ b/rpmbuildupdate @@ -36,6 +36,7 @@ use File::Spec; use File::Path; use RPM4; use String::ShellQuote; +use File::MimeInfo::Magic; my %config; @@ -62,7 +63,7 @@ sub file_not_found { sub is_html { my ($basename) = @_; - `file $basename` =~ /HTML/i and return 1; + mimetype($basename) =~ /HTML/i and return 1; return 0; } |