Copyright | (c) 2017 Red Hat Inc. |
---|---|
License | LGPL |
Maintainer | https://github.com/weldr |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Utilities for manipulating URI
s during import.
Documentation
baseURI :: URI -> URI Source #
Go up one directory in the URI
. For instance:
> ghci> let uri = parseURI "file://pathtoreporepodata/primary.xml"
> ghci> baseURI (fromJust uri)
> 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.