mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-07-23 22:41:30 +00:00
Python 3.2 workaround: Drop usage of enum module
enum is not yet available in Python 3.2, but as long as snakefruit still runs Ubuntu 12.04 we need to get along without it.
This commit is contained in:
parent
6ba940c7f7
commit
9f3b7a2864
@ -1683,10 +1683,10 @@ class Britney(object):
|
||||
for policy in self.policies:
|
||||
if suite in policy.applicable_suites:
|
||||
v = policy.apply_policy(policy_info, suite, src, source_t, source_u)
|
||||
if v.value > policy_verdict.value:
|
||||
if v > policy_verdict:
|
||||
policy_verdict = v
|
||||
|
||||
if policy_verdict.is_rejected:
|
||||
if policy_verdict in [PolicyVerdict.REJECTED_PERMANENTLY, PolicyVerdict.REJECTED_TEMPORARILY]:
|
||||
update_candidate = False
|
||||
|
||||
# Joggle some things into excuses
|
||||
|
@ -1,5 +1,4 @@
|
||||
from abc import abstractmethod
|
||||
from enum import Enum, unique
|
||||
import apt_pkg
|
||||
import os
|
||||
import time
|
||||
@ -8,8 +7,7 @@ from hints import Hint, split_into_one_hint_per_package
|
||||
from britney_util import ensuredir
|
||||
|
||||
|
||||
@unique
|
||||
class PolicyVerdict(Enum):
|
||||
class PolicyVerdict:
|
||||
""""""
|
||||
"""
|
||||
The migration item passed the policy.
|
||||
|
Loading…
x
Reference in New Issue
Block a user