aura-3.0.0: A secure package manager for Arch Linux and the AUR.

Copyright(c) Colin Woodbury 2012 - 2020
LicenseGPL3
MaintainerColin Woodbury <colin@fosskers.ca>
Safe HaskellNone
LanguageHaskell2010

Aura.State

Description

Handle the saving and restoring of installed package states.

Synopsis

Documentation

data PkgState Source #

All packages installed at some specific ZonedTime. Any "pinned" PkgState will never be deleted by `-Bc`.

Constructors

PkgState 
Instances
ToJSON PkgState Source # 
Instance details

Defined in Aura.State

FromJSON PkgState Source # 
Instance details

Defined in Aura.State

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 :: FilePath -> 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 :: FilePath Source #

The default location of all saved states: /var/cache/aura/states

getStateFiles :: IO [FilePath] Source #

The filepaths of every saved package state.