66
77from django .conf import settings
88
9-
109logger = logging .getLogger (__name__ )
1110
1211# The name for the repo inside libsolv which represents the combined set of target/destination
@@ -577,7 +576,7 @@ def get_units_from_solvables(self, solvables):
577576 """Map a list of solvables into their Pulp units, keyed by the repo they came from."""
578577 repo_unit_map = collections .defaultdict (set )
579578 for solvable in solvables :
580- ( unit_id , repo_id ) = self .get_unit_id (solvable )
579+ unit_id , repo_id = self .get_unit_id (solvable )
581580 repo_unit_map [repo_id ].add (unit_id )
582581
583582 return repo_unit_map
@@ -1026,7 +1025,7 @@ def write_solver_debug_data(solver, problems, mapping, full=False):
10261025 print (file = summary )
10271026
10281027 for solvable in transaction .newsolvables ():
1029- ( reason , rule ) = solver .describe_decision (solvable )
1028+ reason , rule = solver .describe_decision (solvable )
10301029
10311030 print (
10321031 "{name}-{evr}.{arch}" .format (
@@ -1035,15 +1034,15 @@ def write_solver_debug_data(solver, problems, mapping, full=False):
10351034 file = summary ,
10361035 )
10371036
1038- ( reason_name , reason_description ) = reason_desc_map [reason ]
1039- ( unit_id , from_repo ) = mapping .get_unit_id (solvable )
1037+ reason_name , reason_description = reason_desc_map [reason ]
1038+ unit_id , from_repo = mapping .get_unit_id (solvable )
10401039 print (
10411040 " Pulp Content unit '{}' from repo '{}'" .format (unit_id , from_repo ), file = summary
10421041 )
10431042 print (" Reason: {} - {}" .format (reason_name , reason_description ), file = summary )
10441043 print (" Rules:" , file = summary )
10451044 for info in rule .allinfos ():
1046- ( rule_name , rule_description ) = rule_desc_map [info .type ]
1045+ rule_name , rule_description = rule_desc_map [info .type ]
10471046 print (" {} - {}" .format (rule_name , rule_description ), file = summary )
10481047 if info .solvable :
10491048 pkg = str (info .solvable )
0 commit comments