pathinfo.distrepo volume option
This commit is contained in:
parent
98c983b1ca
commit
6c0aacc264
1 changed files with 2 additions and 2 deletions
|
|
@ -1919,9 +1919,9 @@ class PathInfo(object):
|
|||
"""Return the directory where a repo belongs"""
|
||||
return self.topdir + ("/repos/%(tag_str)s/%(repo_id)s" % locals())
|
||||
|
||||
def distrepo(self, repo_id, tag):
|
||||
def distrepo(self, repo_id, tag, volume=None):
|
||||
"""Return the directory with a dist repo lives"""
|
||||
return os.path.join(self.topdir, 'repos-dist', tag, str(repo_id))
|
||||
return self.volumedir(volume) + '/repos-dist/%s/%s' % (tag, repo_id)
|
||||
|
||||
def repocache(self, tag_str):
|
||||
"""Return the directory where a repo belongs"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue