| Copyright | (c) 2017 Red Hat Inc. |
|---|---|
| License | LGPL |
| Maintainer | https://github.com/weldr |
| Stability | alpha |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
BDCS.Import.URI
Description
Utilities for manipulating URIs during import.
Documentation
baseURI :: URI -> Maybe URI Source #
Go up one directory in the URI. For instance:
> ghci> let uri = parseURI "file://pathtoreporepodata/primary.xml"
> ghci> baseURI (fromJust uri)
> Just file://pathtorepo
isCompsFile :: URI -> Bool Source #
Does a URI point to a comps.xml file? This is only really useful when importing RPMs from
a comps file, as shipped by RPM-based distributions.
isPrimaryXMLFile :: URI -> Bool Source #
Does a URI point to a primary.xml file? This is only really useful when importing RPMs from
a repo in an RPM-based distribution.