mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
better fallback for version
This commit is contained in:
parent
7cac7363dd
commit
58dfbe0e9d
@ -2271,7 +2271,13 @@ class Packager:
|
||||
|
||||
package = host.getPackage(packageName, version, platform = platform)
|
||||
if not package and not version:
|
||||
# With no version specified, find the best matching version.
|
||||
# No explicit version is specified, first fallback: look
|
||||
# for the compiled-in version.
|
||||
package = host.getPackage(packageName, PandaSystem.getPackageVersionString(), platform = platform)
|
||||
|
||||
if not package and not version:
|
||||
# No explicit version is specified, second fallback: get
|
||||
# the highest-numbered version available.
|
||||
packages = host.getPackages(packageName, platform = platform)
|
||||
self.__sortPackageInfos(packages)
|
||||
for p in packages:
|
||||
|
Loading…
x
Reference in New Issue
Block a user