|
|
@ -2,7 +2,6 @@ import json
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import time
|
|
|
|
import time
|
|
|
|
from abc import abstractmethod
|
|
|
|
from abc import abstractmethod
|
|
|
|
from enum import Enum, unique
|
|
|
|
|
|
|
|
from urllib.parse import quote
|
|
|
|
from urllib.parse import quote
|
|
|
|
|
|
|
|
|
|
|
|
import apt_pkg
|
|
|
|
import apt_pkg
|
|
|
@ -11,8 +10,7 @@ from britney2.hints import Hint, split_into_one_hint_per_package
|
|
|
|
from britney2.utils import ensuredir
|
|
|
|
from britney2.utils import ensuredir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@unique
|
|
|
|
class PolicyVerdict:
|
|
|
|
class PolicyVerdict(Enum):
|
|
|
|
|
|
|
|
""""""
|
|
|
|
""""""
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
The migration item passed the policy.
|
|
|
|
The migration item passed the policy.
|
|
|
@ -612,7 +610,7 @@ class PiupartsPolicy(BasePolicy):
|
|
|
|
piuparts_info['piuparts-test-url'] = url
|
|
|
|
piuparts_info['piuparts-test-url'] = url
|
|
|
|
excuse.addhtml(msg)
|
|
|
|
excuse.addhtml(msg)
|
|
|
|
|
|
|
|
|
|
|
|
if result.is_rejected:
|
|
|
|
if result in [PolicyVerdict.REJECTED_PERMANENTLY, PolicyVerdict.REJECTED_TEMPORARILY]:
|
|
|
|
for ignore_hint in self.hints.search('ignore-piuparts',
|
|
|
|
for ignore_hint in self.hints.search('ignore-piuparts',
|
|
|
|
package=source_name,
|
|
|
|
package=source_name,
|
|
|
|
version=source_data_srcdist.version):
|
|
|
|
version=source_data_srcdist.version):
|
|
|
|