[GHC] #8886: sync-all: END actions result in confusing error message

GHC ghc-devs at haskell.org
Tue Aug 19 12:10:01 UTC 2014


#8886: sync-all: END actions result in confusing error message
-------------------------------+-------------------------------------------
        Reporter:  fw          |            Owner:  hvr
            Type:  bug         |           Status:  patch
        Priority:  normal      |        Milestone:
       Component:  Trac & Git  |          Version:
      Resolution:              |         Keywords:  sync-all
Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple             |       Difficulty:  Easy (less than 1 hour)
 Type of failure:              |       Blocked By:
  None/Unknown                 |  Related Tickets:
       Test Case:              |
        Blocking:              |
-------------------------------+-------------------------------------------

Comment (by Austin Seipp <austin@…>):

 In [changeset:"7012ed8515100b4947383e93b82dbff7a0aa835c/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="7012ed8515100b4947383e93b82dbff7a0aa835c"
 Check if file is present instead of directory

 Fixes #8886.

 Problem: any `sync-all` command that is run before the first succesfull
 `sync-all get` would trigger a false warning about an old `time` package
 being present.

 Cause: after cloning the ghc repository, the (empty) `libraries/time`
 directory is already present.

 Solution: check if the directory actually contains any of the `time`
 files. I picked the `LICENSE` file, since `boot` does so as well.

 Signed-off-by: Austin Seipp <austin at well-typed.com>
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8886#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list