瀏覽代碼

Fix tiny mistake

rdb 16 年之前
父節點
當前提交
3d1e87139d
共有 1 個文件被更改,包括 2 次插入1 次删除
  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"):