Skip to content

Commit

Permalink
Expanded information for repology check
Browse files Browse the repository at this point in the history
  • Loading branch information
VTimofeenko committed Apr 6, 2021
1 parent fe05abb commit 5556363
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ These options can be specified for any `COMMAND` except for `create-config` whi
**Commands**:

* `check-remote-versions`: Prints report on the versions of packages.
* `check-repology`: Returns newest versions known to repology.
* `check-repology`: Returns versions known to repology.
* `mkreadme`: Creates a README for an overlay.

# Commands
Expand Down Expand Up @@ -112,7 +112,7 @@ $ overlay_maintain_tools check-remote-versions [OPTIONS]
* `--help`: Show this message and exit.
## `overlay_maintain_tools check-repology`

Returns newest versions known to repology.
Returns versions known to repology. Reported versions will be newer than ones in overlay.

**Usage**:

Expand Down
7 changes: 4 additions & 3 deletions overlay_maintain_tools/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def check_repology(
exists=True,
),
):
"""Returns newest versions known to repology."""
"""Returns versions known to repology. Reported versions will be newer than ones in overlay."""
from overlay_maintain_tools.repology import (
get_higher_versions_in_repology,
load_repology_cache,
Expand All @@ -120,7 +120,7 @@ def check_repology(
repology_cache=load_repology_cache(repology_cache_location),
)

print_func("Repology report.")
print_func("Repology report:")

pkg_cache = ctx.obj.pkg_cache
for (pkg, reply) in zip(pkg_cache, map(get_higher_versions_in_repology, pkg_cache)):
Expand All @@ -129,7 +129,8 @@ def check_repology(
if reply_i and ctx.obj.quiet:
raise typer.Exit(100)
print_func(
f"{pkg.atomname}:\nHave locally: {', '.join(pkg.versions)}\nNewest in repology: {''.join(reply_i)}"
f"{pkg.atomname}:\nHave locally: {', '.join(pkg.versions)}\n"
f"Versions in repology greater than ones in overlay: {''.join(reply_i)}"
)


Expand Down

0 comments on commit 5556363

Please sign in to comment.