~siborgium/src-tree

cad0076fff8c48766787b560ab7629f8ff9f52ad — Sergey Smirnykh 1 year, 3 months ago 7622e81
rm targetdir on error, specify repos better
2 files changed, 3 insertions(+), 0 deletions(-)

M config.yaml
M src-tree
M config.yaml => config.yaml +2 -0
@@ 1,4 1,6 @@
repositories:
  - url: https://git.sr.ht/~siborgium/Regex
    name: regex
  - url: https://git.sr.ht/~siborgium/prelockdpp
  - url: git@git.sr.ht:~siborgium/dumbme
    branch: master

M src-tree => src-tree +1 -0
@@ 92,6 92,7 @@ class SrcTree(object):
            name = repo['name'] if 'name' in repo else repo_name_from_url(repo['url'])
            dir = root / name / args.builddir
            if not dir.parent.is_dir():
                shutil.rmtree(targetdir)
                raise Exception(f'{dir.parent} is not a directory')

            if dir.is_symlink():