Mercurial > sat_docs
changeset 156:0a92bb60db12
flatpak (build_manifest): Mercurial repository is now updated if it is already cloned
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 28 Jun 2019 15:21:43 +0200 |
parents | 5af7c3d4fab2 |
children | 150085e39072 |
files | flatpak/build_manifest.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flatpak/build_manifest.py Fri Jun 28 15:21:10 2019 +0200 +++ b/flatpak/build_manifest.py Fri Jun 28 15:21:43 2019 +0200 @@ -749,7 +749,9 @@ dest_path = get_cache_dir() / main_package dest_path.mkdir(parents=True, exist_ok=True) if (dest_path / '.hg').is_dir(): - print("code is already in cache") + print("code is already in cache, updating") + hg_cplted = subprocess.run(["hg", "pull", "-u", "--cwd", dest_path]) + hg_cplted.check_returncode() else: try: print(f"retrieving code from repository {url} into {dest_path}")