Browse Source

Change requested by various users

rdb 17 years ago
parent
commit
8f59ed3ee6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      doc/makepanda/makepanda.py

+ 2 - 1
doc/makepanda/makepanda.py

@@ -3666,7 +3666,7 @@ def MakeInstallerLinux():
     DeleteCVS("linuxroot")
     DeleteCVS("linuxroot")
     oscmd("chmod -R 555 linuxroot/usr/share/panda3d")
     oscmd("chmod -R 555 linuxroot/usr/share/panda3d")
     
     
-    if (os.path.exists("/usr/bin/rpmbuild")):
+    if (os.path.exists("/usr/bin/rpmbuild") and not os.path.exists("/usr/bin/dpkg-deb")):
         oscmd("rm -rf linuxroot/DEBIAN")
         oscmd("rm -rf linuxroot/DEBIAN")
         oscmd("rpm -E '%_target_cpu' > built/tmp/architecture.txt")
         oscmd("rpm -E '%_target_cpu' > built/tmp/architecture.txt")
         ARCH=ReadFile("built/tmp/architecture.txt").strip()
         ARCH=ReadFile("built/tmp/architecture.txt").strip()
@@ -3801,3 +3801,4 @@ if os.path.isfile("dtool/src/dtoolutil/checkPandaVersion.cxx.moved"):
 WARNINGS.append("Elapsed Time: "+PrettyTime(time.time() - STARTTIME))
 WARNINGS.append("Elapsed Time: "+PrettyTime(time.time() - STARTTIME))
 
 
 printStatus("Makepanda Final Status Report", WARNINGS)
 printStatus("Makepanda Final Status Report", WARNINGS)
+