]> git.ipfire.org Git - thirdparty/mkosi.git/commit
installer/rpm: make RpmRepository a dataclass
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 Jun 2024 19:57:49 +0000 (21:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Jun 2024 12:58:40 +0000 (14:58 +0200)
commit36caecbce8dc4c1660cd3785efcd50f6deada1a1
treebbde9ebcf9ddc0fc5b2feebc87733ba76d00d566
parent9f8a2d1a1265deba12212a48cc68df6a087822f2
installer/rpm: make RpmRepository a dataclass

Dataclasses are the more modern approach, with better string representation and
less hacks. A NamedTuple is also a tuple, which is rather surprising when we
don't use that.
mkosi/installer/rpm.py