debian-1.2: A set of modules for working with debian control files and packagesContentsIndex
Linspire.Debian.SourcesList
Synopsis
data DebSource = DebSource SourceType URI (Either String (String, [String]))
data SourceType
= Deb
| DebSrc
parseSourceLine :: String -> DebSource
parseSourcesList :: String -> [DebSource]
quoteWords :: String -> [String]
archFiles :: FilePath -> Maybe String -> DebSource -> [FilePath]
Documentation
data DebSource
Constructors
DebSource SourceType URI (Either String (String, [String]))
show/hide Instances
data SourceType
Constructors
Deb
DebSrc
show/hide Instances
parseSourceLine :: String -> DebSource
parseSourceLine -- parses a source line the argument must be a non-empty, valid source line with comments stripped see: sourceLines
parseSourcesList :: String -> [DebSource]
quoteWords :: String -> [String]

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.

archFiles :: FilePath -> Maybe String -> DebSource -> [FilePath]
Return the list of files that apt-get update would write into /var/lib/apt/lists when it processed the given list of DebSource. FIXME: remove the root argument from this and just return the names.
Produced by Haddock version 0.8