Drop pre-2.6 compat function koji.util._relpath

Fixes: https://pagure.io/koji/issue/818
This commit is contained in:
Tomas Kopecek 2018-02-26 15:59:07 +01:00 committed by Mike McLean
parent 22a7998f3a
commit 2eff45f763
6 changed files with 24 additions and 55 deletions

View file

@ -725,7 +725,7 @@ class BuildRoot(object):
raise ValueError(
'path %r is not within the BuildRoot at %r' % (path, root)
)
return os.path.join('/', koji.util.relpath(path, root))
return os.path.join('/', os.path.relpath(path, root))
def resultdir(self):
return "%s/%s/result" % (self.options.mockdir, self.name)