Made installer generation more clear about missing rpmbuild/dpkg-deb

This commit is contained in:
rdb 2008-08-26 08:25:10 +00:00
parent 09d15ccbcc
commit fc3c5b717a

View File

@ -3506,6 +3506,9 @@ def MakeInstallerLinux():
oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec") oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec")
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .") oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
if not(os.path.exists("/usr/bin/rpmbuild") or os.path.exists("/usr/bin/dpkg-deb")):
exit("To build an installer, either rpmbuild or dpkg-deb must be present on your system!")
# oscmd("chmod -R 755 linuxroot") # oscmd("chmod -R 755 linuxroot")
# oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec "+ARCH) # oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec "+ARCH)