debian-3.23: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Repo.Changes
Contents
read, show
Changes File
Description
Basic types for the Apt library.
Synopsis
parseLog :: String -> [Either String ChangeLogEntry]
parseEntry :: String -> Maybe (Either String (ChangeLogEntry, String))
parseChanges :: String -> Maybe ChangeLogEntry
showHeader :: ChangeLogEntry -> String
findChangesFiles :: FilePath -> IO [ChangesFile]
parseChangesFilename :: String -> Maybe (String, DebianVersion, Arch)
parseChangesFile :: FilePath -> String -> IO (Either ParseError Control)
save :: ChangesFile -> IO ()
key :: ChangesFile -> (String, DebianVersion, Arch)
matchKey :: ChangesFile -> (String, DebianVersion, Arch) -> Bool
base :: ChangesFile -> String
path :: ChangesFile -> FilePath
name :: ChangesFile -> FilePath
poolDir' :: Release -> ChangesFile -> ChangedFileSpec -> FilePath
uploadLocal :: CIO m => LocalRepository -> ChangesFile -> m ()
data ChangesFile = Changes {
changeDir :: FilePath
changePackage :: String
changeVersion :: DebianVersion
changeRelease :: ReleaseName
changeArch :: Arch
changeInfo :: Paragraph
changeEntry :: ChangeLogEntry
changeFiles :: [ChangedFileSpec]
}
changesFileName :: ChangesFile -> String
data ChangedFileSpec = ChangedFileSpec {
changedFileMD5sum :: String
changedFileSize :: FileOffset
changedFileSection :: SubSection
changedFilePriority :: String
changedFileName :: FilePath
}
data ChangeLogEntry = Entry {
logPackage :: String
logVersion :: DebianVersion
logDists :: [ReleaseName]
logUrgency :: String
logComments :: String
logWho :: String
logDate :: String
}
read, show
parseLog :: String -> [Either String ChangeLogEntry]Source
Parse a Debian Changelog and return a lazy list of entries
parseEntry :: String -> Maybe (Either String (ChangeLogEntry, String))Source
Parse a single changelog entry, returning the entry and the remaining text.
parseChanges :: String -> Maybe ChangeLogEntrySource
Parse the changelog information that shows up in the .changes file, i.e. a changelog entry with no signature.
showHeader :: ChangeLogEntry -> StringSource
Show just the top line of a changelog entry (for debugging output.)
Changes File
findChangesFiles :: FilePath -> IO [ChangesFile]Source
parseChangesFilename :: String -> Maybe (String, DebianVersion, Arch)Source
parseChangesFile :: FilePath -> String -> IO (Either ParseError Control)Source
save :: ChangesFile -> IO ()Source
key :: ChangesFile -> (String, DebianVersion, Arch)Source
matchKey :: ChangesFile -> (String, DebianVersion, Arch) -> BoolSource
base :: ChangesFile -> StringSource
path :: ChangesFile -> FilePathSource
name :: ChangesFile -> FilePathSource
poolDir' :: Release -> ChangesFile -> ChangedFileSpec -> FilePathSource
Return the subdirectory in the pool where a source package would be installed.
uploadLocal :: CIO m => LocalRepository -> ChangesFile -> m ()Source
Move a build result into a local repository's incoming directory.
data ChangesFile Source
A file generated by dpkg-buildpackage describing the result of a package build
Constructors
Changes
changeDir :: FilePathThe full pathname of the directory holding the .changes file.
changePackage :: StringThe package name parsed from the .changes file name
changeVersion :: DebianVersionThe version number parsed from the .changes file name
changeRelease :: ReleaseNameThe Distribution field of the .changes file
changeArch :: ArchThe architecture parsed from the .changes file name
changeInfo :: ParagraphThe contents of the .changes file
changeEntry :: ChangeLogEntryThe value of the Changes field of the .changes file
changeFiles :: [ChangedFileSpec]The parsed value of the Files attribute
show/hide Instances
changesFileName :: ChangesFile -> StringSource
data ChangedFileSpec Source
An entry in the list of files generated by the build.
Constructors
ChangedFileSpec
changedFileMD5sum :: String
changedFileSize :: FileOffset
changedFileSection :: SubSection
changedFilePriority :: String
changedFileName :: FilePath
show/hide Instances
data ChangeLogEntry Source
A changelog is a series of ChangeLogEntries
Constructors
Entry
logPackage :: String
logVersion :: DebianVersion
logDists :: [ReleaseName]
logUrgency :: String
logComments :: String
logWho :: String
logDate :: String
show/hide Instances
Produced by Haddock version 2.4.2