aura-3.2.8: A secure package manager for Arch Linux and the AUR.
Copyright(c) Colin Woodbury 2012 - 2021
LicenseGPL3
MaintainerColin Woodbury <colin@fosskers.ca>
Safe HaskellNone
LanguageHaskell2010

Aura.Cache

Contents

Description

Reading and searching the package cache.

Synopsis

Types

newtype Cache Source #

Every package in the current cache, paired with its original filename.

Constructors

Cache 

cacheContents :: FilePath -> IO Cache Source #

Given a path to the package cache, yields its contents in a usable form.

data CleanMode Source #

For manipulating the specifics of the cache cleaning process.

Constructors

Quantity 
AndUninstalled 

Instances

Instances details
Eq CleanMode Source # 
Instance details

Defined in Aura.Cache

Show CleanMode Source # 
Instance details

Defined in Aura.Cache

Misc.

defaultPackageCache :: FilePath Source #

The default location of the package cache: /var/cache/pacman/pkg/

cacheMatches :: Settings -> Text -> IO [PackagePath] Source #

Any entries (filepaths) in the cache that match a given Text.

pkgsInCache :: Settings -> Set PkgName -> IO (Set PkgName) Source #

All packages from a given Set who have a copy in the cache.