Copyright | (c) 2020-2021 berberman |
---|---|
License | MIT |
Maintainer | berberman <berberman@yandex.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module provides functions operating with FilesDB
of pacman.
Synopsis
- defaultFilesDBDir :: FilePath
- loadFilesDB :: DBKind -> FilePath -> IO FilesDB
- lookupPkg :: File -> FilesDB -> [ArchLinuxName]
- data DBKind
- type File = String
- type FilesDB = Map ArchLinuxName [File]
Documentation
defaultFilesDBDir :: FilePath Source #
Default directory containing files dbs (varlibpacmansync
).
lookupPkg :: File -> FilesDB -> [ArchLinuxName] Source #
Lookup which Arch Linux package contains this file
from given files db.
This query is bad in performance, since it traverses the entire db.
Two files repos: core
and extra