|
38 | 38 |
|
39 | 39 | def msg(string: str, level: str) -> None: |
40 | 40 | if not args.script: |
41 | | - run([f"{script_dir}/msg.sh", "-a", "package.py", level, string]) |
| 41 | + run([f"{script_dir}/msg.sh", "-a", "package", "-s", "8", level, string]) |
42 | 42 |
|
43 | 43 |
|
44 | 44 | def get_from_localdb(package: str) -> Optional[Package]: |
@@ -66,20 +66,20 @@ def compare(package: str) -> tuple[int,Optional[tuple[str]]]: |
66 | 66 | pkg_from_sync = get_from_syncdb(pkg_from_local.name) if pkg_from_local else None |
67 | 67 |
|
68 | 68 | if not pkg_from_local: |
69 | | - msg(f"{package} is not installed.", "error") |
| 69 | + msg(f"{package} is not installed", "error") |
70 | 70 |
|
71 | 71 | return (3, None) |
72 | 72 | elif not pkg_from_sync: |
73 | | - msg(f"Failed to get the latest version of {package}.", "warn") |
| 73 | + msg(f"Failed to get the latest version of {package}", "warn") |
74 | 74 |
|
75 | 75 | return (1, (pkg_from_local.version)) |
76 | 76 |
|
77 | 77 | if pkg_from_local.version == pkg_from_sync.version: |
78 | | - msg(f"The latest version of {package} is installed.", "info") |
| 78 | + msg(f"Latest {package} {pkg_from_local.version} is installed", "debug") |
79 | 79 |
|
80 | 80 | return (0, (pkg_from_local.version)) |
81 | 81 | else: |
82 | | - msg(f"The version of {package} does not match one of the latest.", "warn") |
| 82 | + msg(f"The version of {package} does not match one of the latest", "warn") |
83 | 83 | msg(f"Local: {pkg_from_local.version} Latest: {pkg_from_sync.version}", "warn") |
84 | 84 |
|
85 | 85 | return (2, (pkg_from_local.version, pkg_from_sync.version)) |
|
0 commit comments