From 8dd6a47edeff7b6a2bb1db259f484db0947daa27 Mon Sep 17 00:00:00 2001 From: TonyFord <tonyford@strategy-investor.de> Date: Mon, 12 Jul 2021 15:46:16 +0200 Subject: [PATCH] bugfix --- git_import.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/git_import.py b/git_import.py index 577aebf..207da32 100644 --- a/git_import.py +++ b/git_import.py @@ -108,9 +108,10 @@ def getRepoYml(): # os.rmdir( PATH ) if( os.path.exists(QPATH) ): - for f in os.listdir( QPATH ): - if( os.path.isfile( QPATH + '/' + f ) ): - h=hashlib.md5(open( QPATH + '/' + f,'rb').read()).hexdigest() + shutil.move( QPATH, './queue' ) + for f in os.listdir( './queue' ): + if( os.path.isfile( './queue/' + f ) ): + h=hashlib.md5(open( './queue/' + f,'rb').read()).hexdigest() repo=open( QPATH + '/' + f,'r').read() os.system( 'rm -rf '+RPATH ) os.system( 'git clone '+repo+' --config core.sshCommand="ssh -i ~/.ssh/p2p" ' + RPATH ) @@ -118,4 +119,5 @@ if( os.path.exists(QPATH) ): os.system( 'rm -rf ' + IPATH + '/' + uname ) os.system( 'rm -rf ' + TPATH + '/' + uname ) checkUserYml() - os.system( 'rm '+QPATH+'/'+f ) + + os.system( 'rm ./queue/'+f ) -- GitLab