discinfo – Installation media metadata

This module provides classes for manipulating .discinfo files. .discinfo files can be found on Fedora installation media and provide media information to Anaconda installer.

Classes

class productmd.discinfo.DiscInfo

This class manipulates .discinfo files used by Anaconda installer.

timestamp = None

Timestamp in float format

description = None

Release description, for example: Fedora 20

arch = None

Media architecture, for example: x86_64

disc_numbers = None

List with disc numbers or [“ALL”]

now()

Shortcut for setting timestamp to now().

dump(f)

Dump data to a file.

Parameters:f (file or str) – file-like object or path to file
dumps()

Dump data to a string.

Return type:str
load(f)

Load data from a file.

Parameters:f (file or str) – file-like object or path to file
loads(s)

Load data from a string.

Parameters:s (str) – input data
validate()

Validate attributes by running all self._validate_*() methods.

Raises:
  • TypeError – if an attribute has invalid type
  • ValueError – if an attribute contains invalid value

Table Of Contents

Previous topic

composeinfo – Compose metadata

Next topic

images – Image metadata

This Page