We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90ed5fc commit 0cdf46dCopy full SHA for 0cdf46d
1 file changed
specfile/macros.py
@@ -27,6 +27,13 @@ class MacroLevel(IntEnum):
27
OLDSPEC = -1
28
GLOBAL = 0
29
30
+ @classmethod
31
+ def _missing_(cls, value: object) -> Optional["MacroLevel"]:
32
+ # ALT Linux uses old rpm 4.13.0.1 with a pushMacro(level - 1) bug.
33
+ if value == -14:
34
+ return cls.MACROFILES
35
+ return None
36
+
37
38
class Macro(collections.abc.Hashable):
39
"""
0 commit comments