Add temporal file option to repo-checker.pl
This commit is contained in:
parent
6c6072b4fe
commit
f54001eba9
@ -15,6 +15,7 @@ import re
|
|||||||
import shelve
|
import shelve
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import tempfile
|
||||||
from urllib import quote_plus
|
from urllib import quote_plus
|
||||||
import urllib2
|
import urllib2
|
||||||
from xml.etree import cElementTree as ET
|
from xml.etree import cElementTree as ET
|
||||||
@ -930,7 +931,12 @@ def _check_repo_group(self, id_, reqs, opts):
|
|||||||
if not fn in downloads:
|
if not fn in downloads:
|
||||||
os.unlink(fn)
|
os.unlink(fn)
|
||||||
|
|
||||||
civs = "LC_ALL=C perl /suse/coolo/checker/repo-checker.pl '%s' '%s' 2>&1" % (destdir, ','.join(toignore))
|
# Create a temporal file for the params
|
||||||
|
params_file = tempfile.NamedTemporaryFile(deleted=False)
|
||||||
|
params_file.write('\n'.join(toignore))
|
||||||
|
params_file.close()
|
||||||
|
civs = "LC_ALL=C perl /suse/coolo/checker/repo-checker.pl '%s' -f %s 2>&1" % (destdir, params_file.name)
|
||||||
|
os.unlink(params_file.name)
|
||||||
#exit(1)
|
#exit(1)
|
||||||
p = subprocess.Popen(civs, shell=True, stdout=subprocess.PIPE, close_fds=True)
|
p = subprocess.Popen(civs, shell=True, stdout=subprocess.PIPE, close_fds=True)
|
||||||
#ret = os.waitpid(p.pid, 0)[1]
|
#ret = os.waitpid(p.pid, 0)[1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user