Skip to content

Commit

Permalink
Should use default flags first, in case extra flags are overriding de…
Browse files Browse the repository at this point in the history
…faults
  • Loading branch information
ivan-m committed Aug 4, 2010
1 parent 7bec9d2 commit c415c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Distribution/Gentoo/PkgManager.hs
Expand Up @@ -109,7 +109,7 @@ defaultPMFlags (InvalidPM _) = undefined
buildCmd :: PkgManager -> [PMFlag] -> [Package] -> String buildCmd :: PkgManager -> [PMFlag] -> [Package] -> String
buildCmd pm fs ps = unwords $ pmCommand pm : fs' ++ ps' buildCmd pm fs ps = unwords $ pmCommand pm : fs' ++ ps'
where where
fs' = mapMaybe (flagRep pm) fs ++ defaultPMFlags pm fs' = defaultPMFlags pm ++ mapMaybe (flagRep pm) fs
ps' = map printPkg ps ps' = map printPkg ps


-- ----------------------------------------------------------------------------- -- -----------------------------------------------------------------------------
Expand Down

0 comments on commit c415c0d

Please sign in to comment.