Skip to content

Commit

Permalink
Using the ecosystem repo as a source of projects.list, got rid of LWP…
Browse files Browse the repository at this point in the history
…::Simple (sadly) and its deps
  • Loading branch information
Tadeusz Sośnierz committed Nov 9, 2010
1 parent 471b7bd commit 573e976
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 266 deletions.
16 changes: 12 additions & 4 deletions bin/neutro
@@ -1,10 +1,10 @@
#!/usr/bin/env perl6
use v6;
use File::Mkdir;
use File::Copy;
use Module::Build;
use Module::Test;
use Module::Install;
use LWP::Simple;

my $home = ($*VM<config><osname> eq 'MSWin32')
?? %*ENV<HOMEPATH> !! %*ENV<HOME>;
Expand Down Expand Up @@ -144,9 +144,17 @@ sub updatedb {
notice 'Updating modules database';
chdir $CONFIGDIR;
unlink 'projects.list' if 'projects.list'.IO ~~ :e;
LWP::Simple.new.getstore:
'http://github.com/perl6/ecosystem/raw/master/projects.list',
'projects.list';
chdir $SRCDIR;
if "$SRCDIR/ecosystem".IO ~~ :d {
chdir 'ecosystem';
my $res = run 'git pull -q';
crap "Failed updating the ecosystem" if $res;
} else {
my $res = run "git clone -q git://github.com/perl6/ecosystem.git";
crap "Failed cloning the ecosystem" if $res;
chdir 'ecosystem';
}
cp 'projects.list', "$CONFIGDIR/projects.list";
}
multi MAIN ('list') {
Expand Down
1 change: 0 additions & 1 deletion deps.proto
@@ -1,3 +1,2 @@
perl6-File-Tools
perl6-Module-Tools
perl6-lwp-simple
234 changes: 0 additions & 234 deletions tmplib/LWP/Simple.pm

This file was deleted.

27 changes: 0 additions & 27 deletions tmplib/MIME/Base64.pm6

This file was deleted.

0 comments on commit 573e976

Please sign in to comment.