# HG changeset patch # User Goffi # Date 1561728103 -7200 # Node ID 0a92bb60db12c6656ccd5dfc34a6b4d766481d17 # Parent 5af7c3d4fab2b555b5583e30b37453516bdc580c flatpak (build_manifest): Mercurial repository is now updated if it is already cloned diff -r 5af7c3d4fab2 -r 0a92bb60db12 flatpak/build_manifest.py --- 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}")