소스 검색

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

rdb 4 년 전
부모
커밋
ae6be7e113
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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"
             provides = "panda3d"
 
 
             # Require at least one of the Python versions we built for.
             # 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.
             # But recommend the system version of Python 3.
             if python3_ver:
             if python3_ver: