@@ -22,7 +22,8 @@ def is_package_compatible(package=None, required_version=ANY_VERSION, packages=N
2222 for package in packages :
2323 # Checks if we already looked up the package :
2424 if PackagesStore .get_package (package ) is not None :
25- return PackagesStore .get_package (package )["supported" ]
25+ package_version = PackagesStore .get_package (package )["version" ]
26+ return is_version_supported (package_version , required_version )
2627
2728 # Safely get the package version, with an exception for when the package was not found
2829 try :
@@ -32,7 +33,7 @@ def is_package_compatible(package=None, required_version=ANY_VERSION, packages=N
3233
3334 # Check support and store package for later
3435 supported = is_version_supported (package_version , required_version )
35- PackagesStore .add_package (package , package_version , supported )
36+ PackagesStore .add_package (package , package_version )
3637
3738 if supported :
3839 logger .debug (
@@ -69,13 +70,12 @@ def export():
6970 return result
7071
7172 @staticmethod
72- def add_package (package , version , supported = True ):
73+ def add_package (package , version ):
7374 global packages
7475 packages [package ] = {
7576 "name" : package ,
7677 "version" : version ,
7778 "requiredAt" : t .get_unixtime_ms (),
78- "supported" : supported ,
7979 "cleared" : False ,
8080 }
8181
0 commit comments