Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Download the packages file if it isn't there already.

  • Loading branch information...
commit 322fad1cd247d06ed9039dfbbf5ad65ca9d7d761 1 parent 370b387
Magnum Solutions Ltd authored July 11, 2010

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. 8  fedora_rpms
8  fedora_rpms
@@ -7,6 +7,14 @@ use Parse::CPAN::Packages;
7 7
 
8 8
 my $packfile = '/home/dave/cpan/modules/02packages.details.txt.gz';
9 9
 
  10
+unless (-f $packfile) {
  11
+  require LWP::Simple;
  12
+
  13
+  warn "Downloading 02packages\n";
  14
+  LWP::Simple::getstore('http://www.cpan.org/modules/02packages.txt.gz',
  15
+                        $packfile);
  16
+};
  17
+
10 18
 my $cmd = q(repoquery --repoid=REPO ) .
11 19
           q(--qf="%{name},%{version},%{vendor},%{repoid}" 'perl-*');
12 20
 

0 notes on commit 322fad1

Please sign in to comment.
Something went wrong with that request. Please try again.