Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
cdac57db
Commit
cdac57db
authored
17 years ago
by
Lennart Kolmodin
Browse files
Options
Downloads
Patches
Plain Diff
Make the qa check return an exit code reporting the status
parent
ff6ca203
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cabal-install/Hackage/Check.hs
+2
-1
2 additions, 1 deletion
cabal-install/Hackage/Check.hs
cabal-install/Main.hs
+4
-1
4 additions, 1 deletion
cabal-install/Main.hs
with
6 additions
and
2 deletions
cabal-install/Hackage/Check.hs
+
2
−
1
View file @
cdac57db
...
...
@@ -23,7 +23,7 @@ import Distribution.PackageDescription.Configuration ( flattenPackageDescription
import
Distribution.Verbosity
(
Verbosity
)
import
Distribution.Simple.Utils
(
defaultPackageDesc
)
check
::
Verbosity
->
IO
()
check
::
Verbosity
->
IO
Bool
check
verbosity
=
do
pdfile
<-
defaultPackageDesc
verbosity
ppd
<-
readPackageDescription
verbosity
pdfile
...
...
@@ -78,3 +78,4 @@ check verbosity = do
when
(
null
packageChecks
)
$
do
putStrLn
"No errors or warnings could be found in the package."
return
(
null
packageChecks
)
This diff is collapsed.
Click to expand it.
cabal-install/Main.hs
+
4
−
1
View file @
cdac57db
...
...
@@ -202,4 +202,7 @@ checkAction :: Flag Verbosity -> [String] -> IO ()
checkAction
verbosityFlag
extraArgs
=
do
unless
(
null
extraArgs
)
$
do
die
$
"'check' doesn't take any extra arguments: "
++
unwords
extraArgs
Check
.
check
(
fromFlag
verbosityFlag
)
allOk
<-
Check
.
check
(
fromFlag
verbosityFlag
)
if
allOk
then
exitWith
ExitSuccess
else
exitWith
(
ExitFailure
1
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment