@@ -1453,7 +1453,7 @@ def load_banner(self):
1453
1453
name = name .replace ("flatpak:" , "" )
1454
1454
pkginfo = self .installer .find_pkginfo (name , installer .PKG_TYPE_FLATPAK )
1455
1455
1456
- if not pkginfo .verified :
1456
+ if pkginfo is None or not pkginfo .verified :
1457
1457
continue
1458
1458
1459
1459
is_flatpak = True
@@ -1634,7 +1634,7 @@ def load_featured(self):
1634
1634
if name .startswith ("flatpak:" ):
1635
1635
name = name .replace ("flatpak:" , "" )
1636
1636
pkginfo = self .installer .find_pkginfo (name , installer .PKG_TYPE_FLATPAK )
1637
- if not pkginfo .verified :
1637
+ if pkginfo is None or not pkginfo .verified :
1638
1638
continue
1639
1639
else :
1640
1640
pkginfo = self .installer .find_pkginfo (name , installer .PKG_TYPE_APT )
@@ -2387,8 +2387,11 @@ def finished_loading_packages(self):
2387
2387
return False
2388
2388
2389
2389
def get_installed_package_hashes (self ):
2390
- installed_fp_refs = installer ._flatpak .get_fp_sys ().list_installed_refs (None )
2391
- fp_hashes = [installer ._flatpak .make_pkg_hash (ref ) for ref in installed_fp_refs ]
2390
+ if self .installer .have_flatpak :
2391
+ installed_fp_refs = installer ._flatpak .get_fp_sys ().list_installed_refs (None )
2392
+ fp_hashes = [installer ._flatpak .make_pkg_hash (ref ) for ref in installed_fp_refs ]
2393
+ else :
2394
+ fp_hashes = []
2392
2395
2393
2396
apt_cache = installer ._apt .get_apt_cache ()
2394
2397
apt_hashes = [installer ._apt .make_pkg_hash (pkg ) for pkg in apt_cache if pkg .installed ]
0 commit comments