From ec5f9a9e06acb70904b24e1b9449f622efffdc9f Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 6 Mar 2014 18:35:38 +0000 Subject: [PATCH] Add -f to ln command to overwrite existing ppython links --- makepanda/installpanda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/installpanda.py b/makepanda/installpanda.py index 4833682bae..2f3deadd5d 100644 --- a/makepanda/installpanda.py +++ b/makepanda/installpanda.py @@ -167,7 +167,7 @@ def InstallPanda(destdir="", prefix="/usr", outputdir="built"): else: oscmd("echo '"+libdir+"/panda3d'> "+destdir+"/etc/ld.so.conf.d/panda3d.conf") oscmd("chmod +x "+destdir+"/etc/ld.so.conf.d/panda3d.conf") - oscmd("ln -s "+PEXEC+" "+destdir+prefix+"/bin/ppython") + oscmd("ln -f -s "+PEXEC+" "+destdir+prefix+"/bin/ppython") oscmd("cp "+outputdir+"/bin/* "+destdir+prefix+"/bin/") for base in os.listdir(outputdir+"/lib"): if (not base.endswith(".a")) or base == "libp3pystub.a":