mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 23:12:55 +00:00
fix position of default namespace application
This commit is contained in:
parent
ee19bebbb6
commit
04073f1108
1 changed files with 4 additions and 4 deletions
|
@ -171,14 +171,14 @@ def main():
|
|||
username, name, filename, hash_type.upper(),
|
||||
checksum))
|
||||
|
||||
module_dir = os.path.join(config['dist-git']['cache_dir'], "lookaside/pkgs", name)
|
||||
hash_dir = os.path.join(module_dir, filename, hash_type, checksum)
|
||||
msgpath = os.path.join(name, filename, hash_type, checksum, filename)
|
||||
|
||||
# prefix name by default namespace if configured
|
||||
if config['dist-git'].get('default_namespace'):
|
||||
name = ensure_namespaced(name, config['dist-git'].get('default_namespace')).strip('/')
|
||||
|
||||
module_dir = os.path.join(config['dist-git']['cache_dir'], "lookaside/pkgs", name)
|
||||
hash_dir = os.path.join(module_dir, filename, hash_type, checksum)
|
||||
msgpath = os.path.join(name, filename, hash_type, checksum, filename)
|
||||
|
||||
# first test if the module really exists
|
||||
git_dir = os.path.join(config['dist-git']['gitroot_dir'], '%s.git' % name)
|
||||
if not os.path.isdir(git_dir):
|
||||
|
|
Loading…
Add table
Reference in a new issue