1272 |
1272 |
1273 self._img.refresh_publishers(full_refresh=full_refresh, |
1273 self._img.refresh_publishers(full_refresh=full_refresh, |
1274 immediate=immediate, pubs=pubs, |
1274 immediate=immediate, pubs=pubs, |
1275 progtrack=self.__progresstracker) |
1275 progtrack=self.__progresstracker) |
1276 |
1276 |
1277 def __licenses(self, pfmri, mfst): |
1277 def __licenses(self, pfmri, mfst, alt_pub=None): |
1278 """Private function. Returns the license info from the |
1278 """Private function. Returns the license info from the |
1279 manifest mfst.""" |
1279 manifest mfst.""" |
1280 license_lst = [] |
1280 license_lst = [] |
1281 for lic in mfst.gen_actions_by_type("license"): |
1281 for lic in mfst.gen_actions_by_type("license"): |
1282 license_lst.append(LicenseInfo(pfmri, lic, |
1282 license_lst.append(LicenseInfo(pfmri, lic, |
1283 img=self._img)) |
1283 img=self._img, alt_pub=alt_pub)) |
1284 return license_lst |
1284 return license_lst |
1285 |
1285 |
1286 @_LockedCancelable() |
1286 @_LockedCancelable() |
1287 def get_pkg_categories(self, installed=False, pubs=misc.EmptyI, |
1287 def get_pkg_categories(self, installed=False, pubs=misc.EmptyI, |
1288 repos=None): |
1288 repos=None): |
2514 unsupported = True |
2514 unsupported = True |
2515 |
2515 |
2516 if mfst is not None: |
2516 if mfst is not None: |
2517 if PackageInfo.LICENSES in info_needed: |
2517 if PackageInfo.LICENSES in info_needed: |
2518 licenses = self.__licenses(pfmri, |
2518 licenses = self.__licenses(pfmri, |
2519 mfst) |
2519 mfst, alt_pub=alt_pub) |
2520 |
2520 |
2521 if PackageInfo.SIZE in info_needed: |
2521 if PackageInfo.SIZE in info_needed: |
2522 size = mfst.get_size( |
2522 size = mfst.get_size( |
2523 excludes=excludes) |
2523 excludes=excludes) |
2524 |
2524 |