mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-09 20:45:47 +01:00
do not die on helper directories
This commit is contained in:
parent
7e0abcd805
commit
56cfff9068
@ -908,9 +908,13 @@ class Package:
|
||||
pathn = getTransActPath(self.dir)
|
||||
|
||||
if validators:
|
||||
for validator in os.listdir(validators):
|
||||
import subprocess
|
||||
p = subprocess.Popen([validators+"/"+validator], close_fds=True)
|
||||
from stat import *
|
||||
for validator in os.listdir(validators):
|
||||
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 )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user