<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,9 +7,9 @@ sh boot-pkgs
 # Check that we have all boot packages.
 for dir in `grep &quot;^[^# ][^ ]*  *[^ ][^ ]*  *[^ ][^ ]*$&quot; packages | sed &quot;s/ .*//&quot;`
 do
-    if test ! -f $dir/LICENSE
+    if test ! -d $dir/_darcs
     then
-        echo &quot;Error: $dir/LICENSE doesn't exist.&quot; &gt;&amp;2
+        echo &quot;Error: $dir/_darcs doesn't exist.&quot; &gt;&amp;2
         echo &quot;Maybe you haven't done './darcs-all get'?&quot; &gt;&amp;2
         exit 1
     fi</diff>
      <filename>boot</filename>
    </modified>
    <modified>
      <diff>@@ -389,23 +389,25 @@ then
     LD=&quot;$hardtop/inplace/mingw/bin/ld.exe&quot;
     NM=&quot;$hardtop/inplace/mingw/bin/nm.exe&quot;
     if ! test -d inplace/mingw ||
-         test inplace/mingw -ot mingw/binutils*.tar.gz ||
-         test inplace/mingw -ot mingw/gcc-core*.tar.gz ||
-         test inplace/mingw -ot mingw/libcrypt*.tar.bz2 ||
-         test inplace/mingw -ot mingw/mingw-runtime*.tar.gz ||
-         test inplace/mingw -ot mingw/perl*.tar.bz2 ||
-         test inplace/mingw -ot mingw/w32api*.tar.gz
+         test inplace/mingw -ot ghc-tarballs/mingw/binutils*.tar.gz ||
+         test inplace/mingw -ot ghc-tarballs/mingw/gcc-core*.tar.gz ||
+         test inplace/mingw -ot ghc-tarballs/mingw/libcrypt*.tar.bz2 ||
+         test inplace/mingw -ot ghc-tarballs/mingw/mingw-runtime*.tar.gz ||
+         test inplace/mingw -ot ghc-tarballs/mingw/perl*.tar.bz2 ||
+         test inplace/mingw -ot ghc-tarballs/mingw/w32api*.tar.gz
     then
         AC_MSG_NOTICE([Making in-tree mingw tree])
         rm -rf inplace/mingw
         mkdir inplace
         mkdir inplace/mingw
-        ( cd inplace/mingw &amp;&amp; tar -zxf ../../mingw/binutils*.tar.gz )
-        ( cd inplace/mingw &amp;&amp; tar -zxf ../../mingw/gcc-core*.tar.gz )
-        ( cd inplace/mingw &amp;&amp; tar -jxf ../../mingw/libcrypt*.tar.bz2 )
-        ( cd inplace/mingw &amp;&amp; tar -zxf ../../mingw/mingw-runtime*.tar.gz )
-        ( cd inplace/mingw &amp;&amp; tar -jxf ../../mingw/perl*.tar.bz2 )
-        ( cd inplace/mingw &amp;&amp; tar -zxf ../../mingw/w32api*.tar.gz )
+        cd inplace/mingw
+        tar -zxf ../../ghc-tarballs/mingw/binutils*.tar.gz
+        tar -zxf ../../ghc-tarballs/mingw/gcc-core*.tar.gz
+        tar -jxf ../../ghc-tarballs/mingw/libcrypt*.tar.bz2
+        tar -zxf ../../ghc-tarballs/mingw/mingw-runtime*.tar.gz
+        tar -jxf ../../ghc-tarballs/mingw/perl*.tar.bz2
+        tar -zxf ../../ghc-tarballs/mingw/w32api*.tar.gz
+        cd ../..
         AC_MSG_NOTICE([In-tree mingw tree created])
     fi
 fi</diff>
      <filename>configure.ac</filename>
    </modified>
    <modified>
      <diff>@@ -112,20 +112,6 @@ sub warning {
     }
 }
 
-sub download {
-    my ($from, $to) = @_;
-
-    my @cmd = (&quot;wget&quot;, $from, &quot;-O&quot;, $to);
-    message &quot;== running @cmd&quot;;
-    system @cmd;
-    if ($? == -1) {
-        die &quot;Failed to execute wget: $!\n&quot;;
-    }
-    elsif ($? != 0) {
-        die &quot;wget failed: $?\n&quot;;
-    }
-}
-
 sub darcs {
     message &quot;== running darcs @_&quot;;
     system (&quot;darcs&quot;, @_) == 0
@@ -178,10 +164,6 @@ sub darcsall {
             die &quot;Bad line: $_&quot;;
         }
     }
-
-    if ($_[0] eq &quot;pull&quot; || $_[0] eq &quot;pul&quot;) {
-        &amp;sync_tarballs();
-    }
 }
 
 sub darcsget {
@@ -233,63 +215,6 @@ sub darcsget {
             die &quot;Bad line: $_&quot;;
         }
     }
-
-    &amp;sync_tarballs();
-}
-
-sub sync_tarballs {
-    my $localpath;
-    my $localdirectory;
-    my $localfilename;
-    my $actualpath;
-    my $actualfilename;
-    my $remotepath;
-    my $path;
-    my @tarballs;
-    my %localtarballs;
-    my ($repo_base, $checked_out_tree) = getrepo();
-
-    message &quot;== Syncing tarballs&quot;;
-
-    open IN, &quot;&lt; tarballs&quot; or die &quot;Can't open packages file&quot;;
-    @tarballs = &lt;IN&gt;;
-    close IN;
-
-    foreach (@tarballs) {
-        chomp;
-        if (m@^([^# ]+)/([^#/ ]+) +([^ ]+)$@) {
-            $localdirectory = $1;
-            $localfilename = $2;
-            $remotepath = $3;
-            $localpath = &quot;$localdirectory/$localfilename&quot;;
-
-            $localtarballs{$localdirectory}{$localfilename} = 1;
-
-            if (! -e $localpath) {
-                if ($checked_out_tree) {
-                    $path = &quot;$repo_base/$localpath&quot;;
-                }
-                else {
-                    $path = &quot;$repo_base/$remotepath&quot;;
-                }
-                &amp;download($path, $localpath);
-            }
-        }
-        elsif (! /^(#.*)?$/) {
-            die &quot;Bad line: $_&quot;;
-        }
-    }
-
-    foreach $localdirectory (keys %localtarballs) {
-        FILE: foreach $actualpath (glob &quot;$localdirectory/*.tar.gz $localdirectory/*.tar.bz2&quot;) {
-            $actualfilename = $actualpath;
-            $actualfilename =~ s#.*/##;
-            if (! defined($localtarballs{$localdirectory}{$actualfilename})) {
-                message &quot;== Deleting $actualpath&quot;;
-                unlink $actualpath;
-            }
-        }
-    }
 }
 
 sub main {</diff>
      <filename>darcs-all</filename>
    </modified>
    <modified>
      <diff>@@ -106,7 +106,7 @@ endif
 ifneq &quot;$(BINDIST)&quot; &quot;YES&quot;
 $(libffi_STAMP_CONFIGURE):
 	&quot;$(RM)&quot; $(RM_OPTS) -r $(LIBFFI_DIR) libffi/build
-	cd libffi &amp;&amp; $(TAR) -zxf tarball/libffi*.tar.gz
+	cd libffi &amp;&amp; $(TAR) -zxf ../ghc-tarballs/libffi/libffi*.tar.gz
 	mv libffi/libffi-* libffi/build
 	chmod +x libffi/ln
 	cd libffi/build &amp;&amp; &quot;$(PATCH)&quot; -p1 &lt; ../libffi.dllize-3.0.8.patch</diff>
      <filename>libffi/ghc.mk</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@
 #
 # Lines that start with a '#' are comments.
 .                                       ghc                             git
+ghc-tarballs                            ghc-tarballs                    darcs
 utils/hsc2hs                            hsc2hs                          darcs
 utils/haddock                           haddock2                        darcs
 libraries/array                         packages/array                  darcs</diff>
      <filename>packages</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>libffi/tarball/README</filename>
    </removed>
    <removed>
      <filename>tarballs</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>c1bcbb61be3a20417bb0a7734869471cc7777d48</id>
    </parent>
  </parents>
  <author>
    <name>Ian Lynagh</name>
    <email>igloo@earth.li</email>
  </author>
  <url>http://github.com/ghc-hq/ghc/commit/f0fabbf8bc61414118029580b991693052202c18</url>
  <id>f0fabbf8bc61414118029580b991693052202c18</id>
  <committed-date>2009-10-23T07:31:00-07:00</committed-date>
  <authored-date>2009-10-23T07:31:00-07:00</authored-date>
  <message>Get the tarballs from a darcs repo, rather than with wget</message>
  <tree>6da549e40c7d967c692005eda68763f8726ffeda</tree>
  <committer>
    <name>Ian Lynagh</name>
    <email>igloo@earth.li</email>
  </committer>
</commit>
