[Fedora-security-commits] fedora-security/tools/lib/Libexig CVE.pm, 1.1.2.1, 1.1.2.2
fedora-security-commits at redhat.com
fedora-security-commits at redhat.com
Thu Jan 10 14:53:11 UTC 2008
Author: lkundrak
Update of /cvs/fedora/fedora-security/tools/lib/Libexig
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2894/lib/Libexig
Modified Files:
Tag: lkundrak-tools-ng
CVE.pm
Log Message:
Use LWP::Simple instead of wget in CVE.pm
Index: CVE.pm
===================================================================
RCS file: /cvs/fedora/fedora-security/tools/lib/Libexig/Attic/CVE.pm,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- CVE.pm 6 Jan 2008 03:31:53 -0000 1.1.2.1
+++ CVE.pm 10 Jan 2008 14:53:09 -0000 1.1.2.2
@@ -9,6 +9,7 @@
use Exporter 'import';
use XML::Parser;
+use LWP::Simple;
@EXPORT = qw/cve/;
@@ -82,10 +83,10 @@
{
my ($file, $age) = @_;
- # XXX: escaping
+ mkdir $cachebase;
system ("mkdir -p '$cachebase'");
- system ("wget -qcO '$cachebase$file' '$sourcebase$file'")
- and die ('Failed to update cache');
+ mirror ($sourcebase.$file, $cachebase.$file)
+ or die ('Failed to update cache');
return $cachebase.$file;
}
More information about the Fedora-security-commits
mailing list