replace obsoleted libs
This commit is contained in:
parent
1ca24fe567
commit
d3766c19b5
4 changed files with 34 additions and 22 deletions
|
|
@ -7,6 +7,7 @@ import six.moves.configparser
|
|||
import os
|
||||
import platform
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
import koji.tasks
|
||||
from koji.tasks import scan_mounts
|
||||
|
|
@ -304,8 +305,10 @@ class RunRootTask(koji.tasks.BaseTaskHandler):
|
|||
failed = []
|
||||
self.logger.info("Unmounting (runroot): %s" % mounts)
|
||||
for dir in mounts:
|
||||
(rv, output) = commands.getstatusoutput("umount -l '%s'" % dir)
|
||||
if rv != 0:
|
||||
proc = subprocess.Popen(["umount", "-l", dir], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
if proc.wait() != 0:
|
||||
output = proc.stdout.read()
|
||||
output += proc.stderr.read()
|
||||
failed.append("%s: %s" % (dir, output))
|
||||
if failed:
|
||||
msg = "Unable to unmount: %s" % ', '.join(failed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue