aura 3.2.1 → 3.2.2
raw patch · 3 files changed
+17/−3 lines, 3 filesdep ~schedulerdep ~tastyPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: scheduler, tasty
API changes (from Hackage documentation)
Files
- CHANGELOG.md +8/−0
- aura.cabal +1/−1
- lib/Aura/Build.hs +8/−2
CHANGELOG.md view
@@ -1,5 +1,13 @@ # Aura Changelog +## 3.2.2 (2020-10-29)++#### Fixed++- A bug involving permissions on the `/tmp` directory. [#661]++[#661]: https://github.com/fosskers/aura/issues/661+ ## 3.2.1 (2020-10-27) With this release, Aura has passed 2,000 commits. Thank you for your ongoing support!
aura.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.2 name: aura-version: 3.2.1+version: 3.2.2 synopsis: A secure package manager for Arch Linux and the AUR. description: Aura is a package manager for Arch Linux. It connects to both the
lib/Aura/Build.hs view
@@ -134,18 +134,24 @@ removeDirectoryRecursive buildDir pure r -createWritableIfMissing :: FilePath -> RIO e ()+createWritableIfMissing :: FilePath -> RIO Env () createWritableIfMissing pth = do exists <- doesDirectoryExist pth if exists -- This is a migration strategy - it ensures that directories created with -- old versions of Aura automatically have their permissions fixed.- then void . runProcess . setStderr closed . setStdout closed $ proc "chmod" ["755", pth]+ then case pth of+ "/var/cache/aura/vcs" -> setMode "755"+ "/tmp" -> setMode "1777"+ _ -> pure () -- The library function `createDirectoryIfMissing` seems to obey umasks when -- creating directories, which can cause problem later during the build -- processes of git packages. By manually creating the directory with the -- expected permissions, we avoid this problem. else void . runProcess . setStderr closed . setStdout closed $ proc "mkdir" ["-p", "-m755", pth]+ where+ setMode :: String -> RIO Env ()+ setMode mode = void . runProcess . setStderr closed . setStdout closed $ proc "chmod" [mode, pth] -- | A unique directory name (within the greater "parent" build dir) in which to -- copy sources and actually build a package.