From b115bba5de0c9fcb70ae3818bb520c9909b6e763 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 19 Jun 2009 12:48:38 +0000 Subject: [PATCH] Fix DeleteCVS when the argument is an empty string --- makepanda/makepandacore.py | 1 + 1 file changed, 1 insertion(+) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index e149519bb5..28dbc1bbfe 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -533,6 +533,7 @@ def ConditionalWriteFile(dest,desiredcontents): WriteFile(dest,desiredcontents) def DeleteCVS(dir): + if dir == ".": dir = "." for entry in os.listdir(dir): if (entry != ".") and (entry != ".."): subdir = dir + "/" + entry