Browse Source

makepackage: Fix extra comma in deb depends line when building without Python

rdb 4 years ago
parent
commit
ae6be7e113
1 changed files with 2 additions and 1 deletions
  1. 2 1
      makepanda/makepackage.py

+ 2 - 1
makepanda/makepackage.py

@@ -397,7 +397,8 @@ def MakeInstallerLinux(version, debversion=None, rpmversion=None, rpmrelease=1,
             provides = "panda3d"
 
             # Require at least one of the Python versions we built for.
-            depends += ", " + " | ".join("python" + version_info["version"] for version_info in install_python_versions)
+            if install_python_versions:
+                depends += ", " + " | ".join("python" + version_info["version"] for version_info in install_python_versions)
 
             # But recommend the system version of Python 3.
             if python3_ver: