Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
825ef1e2
Commit
825ef1e2
authored
Jul 24, 2013
by
Mikhail Glushenkov
Browse files
Improve an error message.
See #1397.
parent
ddeb0eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/Sandbox/Timestamp.hs
View file @
825ef1e2
...
...
@@ -26,6 +26,7 @@ import System.FilePath ((<.>), (</>))
import
qualified
Data.Map
as
M
import
Distribution.Compiler
(
CompilerId
)
import
Distribution.Package
(
packageName
)
import
Distribution.PackageDescription.Configuration
(
flattenPackageDescription
)
import
Distribution.PackageDescription.Parse
(
readPackageDescription
)
import
Distribution.Simple.Setup
(
Flag
(
..
),
...
...
@@ -228,8 +229,14 @@ allPackageSourceFiles verbosity packageDir = inDir (Just packageDir) $ do
useCabalVersion
=
orLaterVersion
$
Version
[
1
,
17
,
0
]
[]
}
onFailedListSources
::
IO
()
onFailedListSources
=
do
warn
verbosity
$
"Couldn't list sources of the package '"
++
display
(
packageName
pkg
)
++
"'"
removeExistingFile
file
-- Run setup sdist --list-sources=TMPFILE
(
flip
finally
)
(
removeExistingFile
file
)
$
do
(
flip
finally
)
(
onFailedListSources
)
$
do
setupWrapper
verbosity
setupOpts
(
Just
pkg
)
sdistCommand
(
const
flags
)
[]
srcs
<-
fmap
lines
.
readFile
$
file
mapM
tryCanonicalizePath
srcs
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment