From 3d1e87139d3d7b56c2dbb710723517f132ceddc9 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 1 Apr 2009 18:12:52 +0000 Subject: [PATCH] Fix tiny mistake --- makepanda/installpanda.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makepanda/installpanda.py b/makepanda/installpanda.py index 52cd7b9c97..9174f5e5ad 100644 --- a/makepanda/installpanda.py +++ b/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"):