diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-07-25 17:01:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-07-25 17:01:57 +0000 |
commit | f1464d5fa918583be521af14e861de34347d0f2b (patch) | |
tree | 36167711c360349ab28f57e3589fb064dca8053f | |
parent | fb15a0b882f7e3e7c6bc11ad2e7da77e37cd63f6 (diff) | |
download | rpm-setup-f1464d5fa918583be521af14e861de34347d0f2b.tar rpm-setup-f1464d5fa918583be521af14e861de34347d0f2b.tar.gz rpm-setup-f1464d5fa918583be521af14e861de34347d0f2b.tar.bz2 rpm-setup-f1464d5fa918583be521af14e861de34347d0f2b.tar.xz rpm-setup-f1464d5fa918583be521af14e861de34347d0f2b.zip |
sync with upstream rpm.org: "Make perl.{req,prov} warn about unreadable files"
(Ville Skyttä, 2010-02-25)
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | perl.prov | 6 | ||||
-rwxr-xr-x | perl.req | 5 |
3 files changed, 11 insertions, 3 deletions
@@ -2,7 +2,8 @@ by glibc for five years now and can safely be assumed that there's no longer any need for it, reducing ~8K packages' dependency on it during next rebuild. (Per Oyvind, mdv) -- perl.prov: sync with upstream rpm.org +- perl.prov: sync with upstream rpm.org: + o make perl.{req,prov} warn about unreadable files - use upstream fonconfig.prov as we had exactly the same file Version 1.147-12 - 24 Jul 2012, by Colin @@ -85,7 +85,11 @@ sub process_file { my ($file) = @_; - open(FILE, "<$file") || return; + if (!open(FILE, $file)) { + warn("$0: Warning: Could not open file '$file' for reading: $!\n"); + return; + } + my ($package, $version, $incomment, $inover) = (); @@ -77,7 +77,10 @@ sub process_file { my ($file) = @_; - open(FILE, "<$file") || return; + if (!open(FILE, $file)) { + warn("$0: Warning: Could not open file '$file' for reading: $!\n"); + return; + } while (<FILE>) { |