debian-3.31: Modules for working with the Debian package systemSource codeContentsIndex
Debian.Sources
Synopsis
data SourceType
= Deb
| DebSrc
data DebSource = DebSource {
sourceType :: SourceType
sourceUri :: URI
sourceDist :: Either String (ReleaseName, [Section])
}
data SliceName = SliceName {
sliceName :: String
}
quoteWords :: String -> [String]
stripLine :: String -> String
sourceLines :: String -> [String]
parseSourceLine :: String -> DebSource
parseSourceLine' :: String -> Maybe DebSource
parseSourcesList :: String -> [DebSource]
Documentation
data SourceType Source
Constructors
Deb
DebSrc
show/hide Instances
data DebSource Source
Constructors
DebSource
sourceType :: SourceType
sourceUri :: URI
sourceDist :: Either String (ReleaseName, [Section])
show/hide Instances
data SliceName Source
This is a name given to a combination of parts of one or more releases that can be specified by a sources.list file.
Constructors
SliceName
sliceName :: String
show/hide Instances
quoteWords :: String -> [String]Source

quoteWords - similar to words, but with special handling of double-quotes and brackets.

The handling double quotes and [] is supposed to match: apt-0.6.44.2/apt-pkg/contrib/strutl.cc:ParseQuoteWord()

The behaviour can be defined as:

Break the string into space seperated words ignoring spaces that appear between "" or []. Strip trailing and leading white space around words. Strip out double quotes, but leave the square brackets intact.

stripLine :: String -> StringSource
sourceLines :: String -> [String]Source
parseSourceLine :: String -> DebSourceSource
parseSourceLine -- parses a source line the argument must be a non-empty, valid source line with comments stripped see: sourceLines
parseSourceLine' :: String -> Maybe DebSourceSource
parseSourcesList :: String -> [DebSource]Source
Produced by Haddock version 2.4.2