Skip to content

Commit

Permalink
Fix broken flag handling for 'hackport status'
Browse files Browse the repository at this point in the history
  • Loading branch information
kolmodin committed Sep 1, 2008
1 parent 72143ba commit 9b8eb4b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import System.Environment ( getArgs, getProgName )
import System.Exit ( exitFailure )
import System.IO

import Bash
import qualified Cabal2Ebuild as E
import Cache
import Diff
Expand Down Expand Up @@ -285,10 +286,12 @@ statusCommand = CommandUI {
statusAction :: StatusFlags -> [String] -> GlobalFlags -> IO ()
statusAction flags args globalFlags = do
let verbose = fromFlag (statusVerbosity flags)
portDir = fromFlag (globalPortDir globalFlags)
overlayPath = fromFlag (globalOverlayPath globalFlags)
toPortDir = fromFlag (statusToPortage flags)
runStatus verbose portDir overlayPath toPortDir
overlayPathM = flagToMaybe (globalOverlayPath globalFlags)
portdirM = flagToMaybe (globalPortDir globalFlags)
toPortdir = fromFlag (statusToPortage flags)
portdir <- maybe getSystemPortdir return portdirM
overlayPath <- maybe (getOverlayPath verbose) return overlayPathM
runStatus verbose portdir overlayPath toPortdir

-----------------------------------------------------------------------
-- Merge
Expand Down

0 comments on commit 9b8eb4b

Please sign in to comment.