1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 02:26:16 +01:00

do not die on helper directories

This commit is contained in:
Adrian Schröter 2010-05-20 18:22:20 +02:00
parent 7e0abcd805
commit 56cfff9068

View File

@ -908,11 +908,15 @@ class Package:
pathn = getTransActPath(self.dir)
if validators:
import subprocess
from stat import *
for validator in os.listdir(validators):
import subprocess
p = subprocess.Popen([validators+"/"+validator], close_fds=True)
if p.wait() != 0:
raise oscerr.RuntimeError(p.stdout, validator )
fn=validators+"/"+validator
mode = os.stat(fn)
if S_ISREG(mode[ST_MODE]):
p = subprocess.Popen([fn], close_fds=True)
if p.wait() != 0:
raise oscerr.RuntimeError(p.stdout, validator )
have_conflicts = False
for filename in self.todo: