@ -192,7 +192,7 @@ from urllib.parse import quote
import apt_pkg
import apt_pkg
# Check the "check_field_name" reflection before removing an import here.
# Check the "check_field_name" reflection before removing an import here.
from britney2 import Suites , Suite , S ourcePackage, BinaryPackageId , BinaryPackage
from britney2 import Suites , Suite , S uiteClass, S ourcePackage, BinaryPackageId , BinaryPackage
from britney2 . consts import ( SOURCE , SOURCEVER , ARCHITECTURE , CONFLICTS , DEPENDS , PROVIDES , MULTIARCH )
from britney2 . consts import ( SOURCE , SOURCEVER , ARCHITECTURE , CONFLICTS , DEPENDS , PROVIDES , MULTIARCH )
from britney2 . excuse import Excuse
from britney2 . excuse import Excuse
from britney2 . hints import HintParser
from britney2 . hints import HintParser
@ -506,7 +506,10 @@ class Britney(object):
suffix = suite if suite in { ' pu ' , ' tpu ' } else ' '
suffix = suite if suite in { ' pu ' , ' tpu ' } else ' '
if hasattr ( self . options , suite ) :
if hasattr ( self . options , suite ) :
suite_path = getattr ( self . options , suite )
suite_path = getattr ( self . options , suite )
suites . append ( Suite ( suite , suite_path , suite_short_name = suffix ) )
suite_class = SuiteClass . TARGET_SUITE
if suite != ' testing ' :
suite_class = SuiteClass . ADDITIONAL_SOURCE_SUITE if suffix else SuiteClass . PRIMARY_SOURCE_SUITE
suites . append ( Suite ( suite_class , suite , suite_path , suite_short_name = suffix ) )
else :
else :
if suite in { ' testing ' , ' unstable ' } : # pragma: no cover
if suite in { ' testing ' , ' unstable ' } : # pragma: no cover
self . logger . error ( " Mandatory configuration %s is not set in the config " , suite . upper ( ) )
self . logger . error ( " Mandatory configuration %s is not set in the config " , suite . upper ( ) )