Skip to content

Commit

Permalink
[aura] Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Apr 23, 2020
1 parent e6ee489 commit 8348ff8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aura/lib/Aura/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ areSatisfied ds = do
checkDBLock :: Settings -> IO ()
checkDBLock ss = do
locked <- doesFileExist lockFile
when locked $ (warn ss checkDBLock_1) *> B.getLine *> checkDBLock ss
when locked $ warn ss checkDBLock_1 *> B.getLine *> checkDBLock ss

-------
-- MISC -- Too specific for `Utilities.hs` or `Aura.Utils`
Expand Down
11 changes: 5 additions & 6 deletions aura/lib/Aura/Install.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,11 @@ install' pkgs = do
unless (switch ss NoPkgbuildCheck)
$ traverse_ (traverse_ analysePkgbuild) buildPkgs
reportPkgsToInstall repoPkgs buildPkgs
unless (switch ss DryRun) $ do
withOkay ss install_3 install_4 $ do
traverse_ repoInstall $ NEL.nonEmpty repoPkgs
let !mbuildPkgs = NEL.nonEmpty buildPkgs
traverse_ (liftIO . storePkgbuilds . fold1) mbuildPkgs
traverse_ buildAndInstall mbuildPkgs
unless (switch ss DryRun) . withOkay ss install_3 install_4 $ do
traverse_ repoInstall $ NEL.nonEmpty repoPkgs
let !mbuildPkgs = NEL.nonEmpty buildPkgs
traverse_ (liftIO . storePkgbuilds . fold1) mbuildPkgs
traverse_ buildAndInstall mbuildPkgs

-- | Determine if a package's PKGBUILD might contain malicious bash code.
analysePkgbuild :: Buildable -> RIO Env ()
Expand Down

0 comments on commit 8348ff8

Please sign in to comment.