[commit: ghc] master: Don't get submodules when 'get'ing (691c8a8)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/691c8a8cef3b26a7f4734a6f7b69871a0ed726fd

>---------------------------------------------------------------

commit 691c8a8cef3b26a7f4734a6f7b69871a0ed726fd
Author: Ian Lynagh <[email protected]>
Date:   Sun Dec 2 15:40:01 2012 +0000

    Don't get submodules when 'get'ing
    
    Leave it to 'git submodule init/update'

>---------------------------------------------------------------

 packages |   23 ++++++++++++-----------
 sync-all |    2 ++
 2 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/packages b/packages
index fe93177..a4b8087 100644
--- a/packages
+++ b/packages
@@ -24,6 +24,7 @@
 # where
 #   * 'localpath' is where to put the repository in a checked out tree.
 #   * 'remotepath' is where the repository is in the central repository.
+#     It is - for submodules.
 #   * 'VCS' is what version control system the repo uses.
 #
 #   * The 'tag' determines when "darcs-all get" will get the
@@ -48,15 +49,15 @@ utils/hsc2hs                    -           hsc2hs.git
 utils/haddock                   -           haddock.git                         git
 libraries/array                 -           packages/array.git                  git
 libraries/base                  -           packages/base.git                   git
-libraries/binary                -           packages/binary.git                 git
-libraries/bytestring            -           packages/bytestring.git             git
-libraries/Cabal                 -           packages/Cabal.git                  git
-libraries/containers            -           packages/containers.git             git
+libraries/binary                -           -                                   git
+libraries/bytestring            -           -                                   git
+libraries/Cabal                 -           -                                   git
+libraries/containers            -           -                                   git
 libraries/deepseq               -           packages/deepseq.git                git
 libraries/directory             -           packages/directory.git              git
 libraries/filepath              -           packages/filepath.git               git
 libraries/ghc-prim              -           packages/ghc-prim.git               git
-libraries/haskeline             -           packages/haskeline.git              git
+libraries/haskeline             -           -                                   git
 libraries/haskell98             -           packages/haskell98.git              git
 libraries/haskell2010           -           packages/haskell2010.git            git
 libraries/hoopl                 -           packages/hoopl.git                  git
@@ -65,19 +66,19 @@ libraries/integer-gmp           -           packages/integer-gmp.git
 libraries/integer-simple        -           packages/integer-simple.git         git
 libraries/old-locale            -           packages/old-locale.git             git
 libraries/old-time              -           packages/old-time.git               git
-libraries/pretty                -           packages/pretty.git                 git
+libraries/pretty                -           -                                   git
 libraries/process               -           packages/process.git                git
 libraries/template-haskell      -           packages/template-haskell.git       git
-libraries/terminfo              -           packages/terminfo.git               git
-libraries/transformers          -           packages/transformers.git           git
+libraries/terminfo              -           -                                   git
+libraries/transformers          -           -                                   git
 libraries/unix                  -           packages/unix.git                   git
-libraries/Win32                 -           packages/Win32.git                  git
+libraries/Win32                 -           -                                   git
 libraries/xhtml                 -           packages/xhtml.git                  git
 testsuite                       testsuite   testsuite.git                       git
 nofib                           nofib       nofib.git                           git
 libraries/parallel              extra       packages/parallel.git               git
 libraries/stm                   extra       packages/stm.git                    git
 libraries/random                dph         packages/random.git                 git
-libraries/primitive             dph         packages/primitive.git              git
-libraries/vector                dph         packages/vector.git                 git
+libraries/primitive             dph         -                                   git
+libraries/vector                dph         -                                   git
 libraries/dph                   dph         packages/dph.git                    git
diff --git a/sync-all b/sync-all
index 4f7e767..04bbd19 100755
--- a/sync-all
+++ b/sync-all
@@ -300,6 +300,8 @@ sub scmall {
         $path = "$repo_base/$remotepath";
 
         if ($command eq "get") {
+            next if $remotepath eq "-"; # "git submodule init/update" will get this later
+
             # Skip any repositories we have not included the tag for
             if (not defined($tags{$tag})) {
                 $tags{$tag} = 0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.