Define BuildDepResult object (based on IntEnum)

Signed-off-by: Ivo De Decker <ivodd@debian.org>
ubuntu/rebased
Ivo De Decker 6 years ago
parent c9148d475a
commit 07643f4c30

@ -3,6 +3,7 @@ import logging
import os
import re
import time
from enum import IntEnum, unique
from urllib.parse import quote
import apt_pkg
@ -747,6 +748,15 @@ class PiupartsPolicy(BasePolicy):
return summary
@unique
class BuildDepResult(IntEnum):
# relation is satisfied in target
OK = 1
# relation can be satisfied by other packages in source
DEPENDS = 2
# relation cannot be satisfied
FAILED = 3
class BuildDependsPolicy(BasePolicy):
def __init__(self, options, suite_info):

Loading…
Cancel
Save