Browse Source

Fix tiny mistake

rdb 16 years ago
parent
commit
3d1e87139d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      makepanda/installpanda.py

+ 2 - 1
makepanda/installpanda.py

@@ -59,7 +59,8 @@ def InstallPanda(destdir="", prefix="/usr", outputdir="built"):
     DeleteCVS(destdir)
     # rpmlint doesn't like these files, for some reason.
     DeleteCXX(destdir+"/usr/share/panda3d")
-    os.remove("/usr/share/panda3d/direct/leveleditor/copyfiles.pl")
+    if (os.path.isfile(destdir+"/usr/share/panda3d/direct/leveleditor/copyfiles.pl")):
+      os.remove(destdir+"/usr/share/panda3d/direct/leveleditor/copyfiles.pl")
 
 if (__name__ == "__main__"):
     if (sys.platform != "linux2"):