343 def __init__(self, unmatched_fmris=EmptyI, multiple_matches=EmptyI, |
343 def __init__(self, unmatched_fmris=EmptyI, multiple_matches=EmptyI, |
344 missing_matches=EmptyI, illegal=EmptyI, |
344 missing_matches=EmptyI, illegal=EmptyI, |
345 badarch=EmptyI, installed=EmptyI, multispec=EmptyI, |
345 badarch=EmptyI, installed=EmptyI, multispec=EmptyI, |
346 no_solution=False, no_version=EmptyI, missing_dependency=EmptyI, |
346 no_solution=False, no_version=EmptyI, missing_dependency=EmptyI, |
347 wrong_publishers=EmptyI, obsolete=EmptyI, nofiles=EmptyI, |
347 wrong_publishers=EmptyI, obsolete=EmptyI, nofiles=EmptyI, |
348 solver_errors=EmptyI): |
348 solver_errors=EmptyI, wrong_variants=EmptyI): |
349 ApiException.__init__(self) |
349 ApiException.__init__(self) |
350 self.unmatched_fmris = unmatched_fmris |
350 self.unmatched_fmris = unmatched_fmris |
351 self.multiple_matches = multiple_matches |
351 self.multiple_matches = multiple_matches |
352 self.missing_matches = missing_matches |
352 self.missing_matches = missing_matches |
353 self.illegal = illegal |
353 self.illegal = illegal |
357 self.obsolete = obsolete |
357 self.obsolete = obsolete |
358 self.no_solution = no_solution |
358 self.no_solution = no_solution |
359 self.no_version = no_version |
359 self.no_version = no_version |
360 self.missing_dependency = missing_dependency |
360 self.missing_dependency = missing_dependency |
361 self.wrong_publishers = wrong_publishers |
361 self.wrong_publishers = wrong_publishers |
|
362 self.wrong_variants = wrong_variants |
362 self.nofiles = nofiles |
363 self.nofiles = nofiles |
363 self.solver_errors = solver_errors |
364 self.solver_errors = solver_errors |
364 |
365 |
365 def __str__(self): |
366 def __str__(self): |
366 res = [] |
367 res = [] |
368 s = _("""\ |
369 s = _("""\ |
369 The following pattern(s) did not match any packages in the current catalog. |
370 The following pattern(s) did not match any packages in the current catalog. |
370 Try relaxing the pattern, refreshing and/or examining the catalogs:""") |
371 Try relaxing the pattern, refreshing and/or examining the catalogs:""") |
371 res += [s] |
372 res += [s] |
372 res += ["\t%s" % p for p in self.unmatched_fmris] |
373 res += ["\t%s" % p for p in self.unmatched_fmris] |
|
374 |
|
375 if self.wrong_variants: |
|
376 s = _("""\ |
|
377 The following pattern(s) only matched packages that are not available |
|
378 for the current image's architecture, zone type, and/or other variant:""") |
|
379 res += [s] |
|
380 res += ["\t%s" % p for p in self.wrong_variants] |
373 |
381 |
374 if self.wrong_publishers: |
382 if self.wrong_publishers: |
375 s = _("The following patterns only matched packages " |
383 s = _("The following patterns only matched packages " |
376 "that are from publishers other than that which " |
384 "that are from publishers other than that which " |
377 "supplied the already installed version of this package") |
385 "supplied the already installed version of this package") |