Explorar el Código

Add --root argument to rpmbuild

rdb hace 16 años
padre
commit
d5a49ac079
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      makepanda/makepanda.py

+ 1 - 1
makepanda/makepanda.py

@@ -4645,7 +4645,7 @@ def MakeInstallerLinux():
         pandasource = os.path.abspath(os.getcwd())
         txt = INSTALLER_SPEC_FILE[1:].replace("VERSION",VERSION).replace("PANDASOURCE",pandasource).replace("PYTHONV",PYTHONV).replace("PV",PV)
         WriteFile("panda3d.spec", txt)
-        oscmd("rpmbuild --define '_rpmdir "+pandasource+"' -bb panda3d.spec")
+        oscmd("rpmbuild --define '_rpmdir "+pandasource+"' --root "+pandasource+" --buildroot linuxroot -bb panda3d.spec")
         oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
     
     if (os.path.exists("/usr/bin/dpkg-deb")):