Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix error messages with "cabal update" -> "hackport update" Same fix …

…as marty.rosenberg@gmail.com once did for cabal-install-0.8.2, which we now are replacing.
  • Loading branch information...
commit b3f94510df15988648e2f5b53053d930719f5577 1 parent 8f0c2ac
@kolmodin kolmodin authored Heather committed
View
8 cabal-install/Distribution/Client/IndexUtils.hs
@@ -186,7 +186,7 @@ readRepoIndex verbosity repo =
case repoKind repo of
Left remoteRepo -> warn verbosity $
"The package list for '" ++ remoteRepoName remoteRepo
- ++ "' does not exist. Run 'cabal update' to download it."
+ ++ "' does not exist. Run 'hackport update' to download it."
Right _localRepo -> warn verbosity $
"The package list for the local repo '" ++ repoLocalDir repo
++ "' is missing. The repo is invalid."
@@ -199,8 +199,8 @@ readRepoIndex verbosity repo =
when (dt >= isOldThreshold) $ case repoKind repo of
Left remoteRepo -> warn verbosity $
"The package list for '" ++ remoteRepoName remoteRepo
- ++ "' is " ++ show dt ++ " days old.\nRun "
- ++ "'cabal update' to get the latest list of available packages."
+ ++ "' is " ++ show (tdDay diff) ++ " days old.\nRun "
+ ++ "'hackport update' to get the latest list of available packages."
Right _localRepo -> return ()
-- | It is not necessary to call this, as the cache will be updated when the
@@ -442,7 +442,7 @@ packageIndexFromCache mkPkg hnd = accum mempty []
interror msg = die $ "internal error when reading package index: " ++ msg
++ "The package index or index cache is probably "
- ++ "corrupt. Running cabal update might fix it."
+ ++ "corrupt. Running 'hackport update' might fix it."
------------------------------------------------------------------------
-- Index cache data structure
View
2  cabal-install/Distribution/Client/Targets.hs
@@ -595,7 +595,7 @@ reportPackageTargetProblems verbosity problems = do
pkgs -> die $ unlines
[ "There is no package named '" ++ display name ++ "'. "
| name <- pkgs ]
- ++ "You may need to run 'cabal update' to get the latest "
+ ++ "You may need to run 'hackport update' to get the latest "
++ "list of available packages."
case [ (pkg, matches) | PackageNameAmbigious pkg matches _ <- problems ] of
Please sign in to comment.
Something went wrong with that request. Please try again.