aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ebuildgen/scmprojects.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ebuildgen/scmprojects.py b/ebuildgen/scmprojects.py
index 7310c0b..ae1ecfb 100644
--- a/ebuildgen/scmprojects.py
+++ b/ebuildgen/scmprojects.py
@@ -1,5 +1,7 @@
from subprocess import call
import sys
+import glob
+import shutil
cmdlineget = {
"svn" : "svn checkout ",
@@ -15,6 +17,10 @@ def getsourcecode(adress,repotype):
"""
callstr = cmdlineget[repotype]
+ if glob.glob("/tmp/ebuildgen/curproj"):
+ #this is might not be the best solution
+ shutil.rmtree("/tmp/ebuildgen/curproj")
+
try:
retcode = call(callstr + adress + " /tmp/ebuildgen/curproj",shell=True)
if retcode < 0: