Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cabal-bundler/src/CabalBundler/OpenBSD.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ unitsToDeps meta units = fmap concat $ for units $ \unit -> do
rev <- case P.uType unit of
P.UnitTypeBuiltin -> pure Nothing
P.UnitTypeLocal -> pure $ Just 0 -- Revision unavailable for local packages
_ -> do
t -> do
case P.uSha256 unit of
Just _ -> do
pkgInfo <- maybe (throwM $ UnknownPackageName cpkgname) return $
Expand All @@ -70,9 +70,7 @@ unitsToDeps meta units = fmap concat $ for units $ \unit -> do

pure $ Just $ fromIntegral (I.riRevision relInfo)

Nothing -> case P.uType unit of
P.UnitTypeLocal -> pure $ Just 0
t -> throwM $ UnknownUnitType cpkgname t
Nothing -> throwM $ UnknownUnitType cpkgname t

let depForRev r = [Dep {
depPackageName = cpkgname
Expand Down