Commit message (Collapse) | Author | Age | Files | |
---|---|---|---|---|
* | webmap-download: Make --debug repeatable and skip HTTP debugging if it's ↵ | Guilhem Moulin | 2024-06-03 | 1 |
| | | | | | | | passed only once. This makes --debug less verbose by default and is useful for modules that do lots of HTTP connections such as WMS probing. | |||
* | Add GPL-3+ license headers. | Guilhem Moulin | 2024-06-03 | 1 |
| | ||||
* | webmap-download: Move format_bytes() and format_time() to common.py. | Guilhem Moulin | 2024-06-03 | 1 |
| | ||||
* | webmap-download: Replace pathlib.as_posix() with str(). | Guilhem Moulin | 2024-06-03 | 1 |
| | | | | | We most likely only support POSIX systems, but best to hard code the dependency. | |||
* | webmap-download: Improve comment. | Guilhem Moulin | 2024-06-03 | 1 |
| | ||||
* | webmap-download: Refactor download(). | Guilhem Moulin | 2024-06-03 | 1 |
| | ||||
* | webmap-download: Fix check for download duplicates. | Guilhem Moulin | 2024-06-02 | 1 |
| | | | | dest needs to be stringified before the membership check. | |||
* | webmap-download: Add --quiet flag to always skip progress bars. | Guilhem Moulin | 2024-06-02 | 1 |
| | ||||
* | webmap-download: Set --exit-code by default. | Guilhem Moulin | 2024-06-02 | 1 |
| | | | | This can be turned off with --no-exit-code. | |||
* | webmap-download: Ensure we always call linkat() not link(). | Guilhem Moulin | 2024-06-02 | 1 |
| | | | | | | | | | | | | | This costs an extra file descriptor when --cachedir is unsed, but os.link(f'/proc/self/fd/{fp.fileno()}', newpath, dst_dir_fd=None, follow_symlinks=True) calls link("/proc/self/fd/…", newpath) rather than linkat(AT_FDCWD, "/proc/self/fd/…", AT_FDCWD, newpath, AT_SYMLINK_FOLLOW) and the former fails with EXDEV (Invalid cross-device link). | |||
* | Rename script into module and run module.download(). | Guilhem Moulin | 2024-06-02 | 1 |
| | | | | | Instead of using a dedicated executable. There is too much code duplicate otherwise. | |||
* | webmap-download: Simplify locking logic. | Guilhem Moulin | 2024-06-02 | 1 |
| | | | | | Don't use a lockdir by default, and always use lockfiles of the form ‘sha1_hex(path).lck’ if --lockdir is set. | |||
* | webmap-download: Add a progress bar. | Guilhem Moulin | 2024-06-01 | 1 |
| | ||||
* | Add `webmap-download` script. | Guilhem Moulin | 2024-06-01 | 1 |