Copyright | (c) 2016-2017 Red Hat Inc. |
---|---|
License | LGPL |
Maintainer | https://github.com/weldr |
Stability | alpha |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Utility functions for BDCS.RPM
- splitFilename :: Text -> (Text, Maybe Text, Text, Text, Text)
Documentation
splitFilename :: Text -> (Text, Maybe Text, Text, Text, Text) Source #
Turn an RPM filename in form of "NAME-[EPOCH:]VERSION-RELEASE.ARCH[.rpm] into a tuple of (name, epoch, version, release, and arch).