albs-oval-errata-diff/albs_oval_errata_diff/package.py

17 lines
296 B
Python
Raw Normal View History

2022-12-29 14:29:18 +00:00
"""
package.py contains Package dataclass definition
"""
2022-12-28 16:21:40 +00:00
from dataclasses import dataclass
@dataclass
class Package:
"""
Package represents RPM package exstracted from RHEL OVAL
"""
name: str
version: str
def __str__(self):
return f"{self.name}-{self.version}"