mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-10 19:01:08 +00:00
Define BuildDepResult object (based on IntEnum)
Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
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…
x
Reference in New Issue
Block a user