| Copyright | (c) Colin Woodbury 2012 - 2020 |
|---|---|
| License | GPL3 |
| Maintainer | Colin Woodbury <colin@fosskers.ca> |
| Safe Haskell | None |
| Language | Haskell2010 |
Aura.State
Description
Handle the saving and restoring of installed package states.
Documentation
All packages installed at some specific ZonedTime. Any "pinned" PkgState will
never be deleted by `-Bc`.
Constructors
| PkgState | |
saveState :: Settings -> IO () Source #
Save a package state.
In writing the first state file, the states directory is created automatically.
restoreState :: RIO Env () Source #
Does its best to restore a state chosen by the user.
inState :: SimplePkg -> PkgState -> Bool Source #
Does a given package have an entry in a particular PkgState?
readState :: Path Absolute -> IO (Maybe PkgState) Source #
Given a FilePath to a package state file, attempt to read and parse
its contents. As of Aura 2.0, only state files in JSON format are accepted.
stateCache :: Path Absolute Source #
The default location of all saved states: /var/cache/aura/states