From fe32d0f95fa533f29b2f371157d030c2cca00308 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 18 Nov 2008 14:22:26 +0000 Subject: [PATCH] Fix bug (on main branch) --- doc/makepanda/makepanda.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/makepanda/makepanda.py b/doc/makepanda/makepanda.py index 4645b9acdd..3bb56f6477 100755 --- a/doc/makepanda/makepanda.py +++ b/doc/makepanda/makepanda.py @@ -3584,7 +3584,11 @@ def MakeInstallerLinux(): import compileall PYTHONV=SDK["PYTHONVERSION"] if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") - oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec `dpkg --print-architecture` `rpm -E '%_target_cpu'`") + oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") + if (os.path.exists("/usr/bin/rpmbuild")): + oscmd("rm -rf `rpm -E '%_target_cpu'`") + if (os.path.exists("/usr/bin/dpkg-deb")): + oscmd("rm -rf `dpkg --print-architecture`") oscmd("mkdir -p linuxroot/usr/bin") oscmd("mkdir -p linuxroot/usr/include") oscmd("mkdir -p linuxroot/usr/share/panda3d")