X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=darcs-all;h=24ed6f482a3a872c0aaf5f1f024f066ea335cc83;hp=7743e8a857eddd2a51457d36e6238319a19bfced;hb=ae72991e2f0343c075a30c0a5a7d4ac18e9ef500;hpb=218419af65674e52a2070dd84e2195cb4fe203fd diff --git a/darcs-all b/darcs-all index 7743e8a..24ed6f4 100644 --- a/darcs-all +++ b/darcs-all @@ -31,7 +31,7 @@ else { die "Couldn't work out defaultrepo"; } -my $verbose = 1; +my $verbose = 2; my $ignore_failure = 0; # --extra says we grab the extra libs with 'get'. It has no effect on @@ -43,13 +43,15 @@ my $nofib = 0; my $testsuite = 0; sub message { - if ($verbose) { + if ($verbose >= 2) { print "@_\n"; } } sub warning { - print "warning: @_\n"; + if ($verbose >= 1) { + print "warning: @_\n"; + } } sub darcs { @@ -69,7 +71,7 @@ sub darcsall { message "== $dir not present or not a repository; skipping"; } } - for my $pkg (`cat libraries/core-packages libraries/extra-packages`) { + for my $pkg (`cat libraries/boot-packages libraries/extra-packages`) { chomp $pkg; if (-d "libraries/$pkg") { darcs (@_, "--repodir", "libraries/$pkg"); @@ -110,10 +112,10 @@ sub darcsget { my @packages; if ($extra) { - @packages = `cat core-packages extra-packages`; + @packages = `cat boot-packages extra-packages`; } else { - @packages = `cat core-packages`; + @packages = `cat boot-packages`; } for my $pkg (@packages) { @@ -132,6 +134,9 @@ sub main { # We handle -q here as well as lower down as we need to skip over it # if it comes before the darcs command if ($arg eq "-q") { + $verbose = 1; + } + elsif ($arg eq "-s") { $verbose = 0; } elsif ($arg eq "--extra") { @@ -146,7 +151,7 @@ sub main { else { unshift @_, $arg; if (grep /^-q$/, @_) { - $verbose = 0; + $verbose = 1; } last; }