-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Utilities to work with debian binary packages -- -- This package provides a library and some tools to work with debian -- binary packages. @package debian-binary @version 0.0.1 -- | This module provides functions to do an action and undo it after a -- function passed as paramaeter is executed. module System.Debian.Binary.Utils.Temp -- | Changes the current directory to directory, executes -- action, and then changes the current directory to the -- original one. cdTemp :: FilePath -> IO result -> IO result -- | Creates a directory, executes action, then removes -- it and all its contents. mkdirTemp :: FilePath -> IO result -> IO result -- | Utility function that runs mkdirTemp inside a cdTemp. mkdirCdTemp :: FilePath -> IO a -> IO a -- | Extracts a gziped file, executes action and compact -- it again. gzipTemp :: FilePath -> IO result -> IO result -- | This module provides utility functions to work with Debian binary -- packages. module System.Debian.Binary.Utils -- | Read a file strictly. strictReadFile :: FilePath -> IO String -- | This module provides functions to work with Debian binary packages. module System.Debian.Binary -- | Extracts package in /tmp/debian-binary, runs -- action and repacks package in /tmp/package. updatePackage :: FilePath -> IO () -> IO () -- | Extracts package in /tmp/debian-binary and runs -- action. withPackage :: FilePath -> IO () -> IO () -- | Extract the package name of a debian filename. packageName :: FilePath -> String