debian-3.33: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Changes
Description
Changelog and changes file support.
Synopsis
data ChangesFile = Changes {
changeDir :: FilePath
changePackage :: String
changeVersion :: DebianVersion
changeRelease :: ReleaseName
changeArch :: Arch
changeInfo :: Paragraph
changeEntry :: ChangeLogEntry
changeFiles :: [ChangedFileSpec]
}
data ChangedFileSpec = ChangedFileSpec {
changedFileMD5sum :: String
changedFileSHA1sum :: String
changedFileSHA256sum :: String
changedFileSize :: FileOffset
changedFileSection :: SubSection
changedFilePriority :: String
changedFileName :: FilePath
}
changesFileName :: ChangesFile -> String
data ChangeLogEntry = Entry {
logPackage :: String
logVersion :: DebianVersion
logDists :: [ReleaseName]
logUrgency :: String
logComments :: String
logWho :: String
logDate :: String
}
parseLog :: String -> [Either String ChangeLogEntry]
parseEntry :: String -> Maybe (Either String (ChangeLogEntry, String))
parseChanges :: String -> Maybe ChangeLogEntry
Documentation
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
data ChangedFileSpec Source
An entry in the list of files generated by the build.
Constructors
ChangedFileSpec
changedFileMD5sum :: String
changedFileSHA1sum :: String
changedFileSHA256sum :: String
changedFileSize :: FileOffset
changedFileSection :: SubSection
changedFilePriority :: String
changedFileName :: FilePath
show/hide Instances
changesFileName :: ChangesFile -> StringSource
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
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.
Produced by Haddock version 2.4.2