Skip to content

Commit

Permalink
Reword information message
Browse files Browse the repository at this point in the history
  • Loading branch information
mosteo committed Nov 16, 2023
1 parent 100fc0b commit be0ad22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions src/alire/alire-solutions-diffs.adb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ package body Alire.Solutions.Diffs is
Unpinned, -- A release being unpinned
Unchanged, -- An unchanged dependency/release
Missing, -- A missing dependency
Binary -- A binary, system or external release
Binary, -- A binary, system or external release
Info -- General info icon
);

----------
Expand All @@ -42,7 +43,8 @@ package body Alire.Solutions.Diffs is
when Unpinned => TTY.Emph (U ("🎈")), -- alts: 𐩒🎈
when Unchanged => TTY.OK (U ("=")),
when Missing => TTY.Error (U ("")), -- alts: ⚠️❗‼️
when Binary => TTY.Warn (U ("📦")))
when Binary => TTY.Warn (U ("📦")),
when Info => TTY.Emph (U ("🛈")))
else
(case Change is
when Added => U ("+"),
Expand All @@ -54,7 +56,8 @@ package body Alire.Solutions.Diffs is
when Unpinned => U ("o"),
when Unchanged => U ("="),
when Missing => U ("!"),
when Binary => U ("b")
when Binary => U ("b"),
when Info => U ("i")
));

-- This type is used to summarize every detected change
Expand Down Expand Up @@ -403,11 +406,14 @@ package body Alire.Solutions.Diffs is
then
Trace.Log (Prefix, Level);
Trace.Log
(Prefix & Icon (Missing)
& " The solution requires the download of");
(Prefix & Icon (Info)
& " The solution requires a toolchain that is");
Trace.Log
(Prefix
& " a toolchain not currently installed.");
& " not yet installed. Accepting the solution");
Trace.Log
(Prefix
& " will download and install this toolchain.");
return;
end if;
end loop;
Expand Down
2 changes: 1 addition & 1 deletion testsuite/tests/solver/compiler-installed/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# results in a complete solution but with installation warning
alr_with("gnat", delete=True, manual=False)
p = run_alr("with", f"gnat/={version}", quiet=False)
assert_match(".*solution requires the download", p.out)
assert_match(".*solution requires a toolchain", p.out)
match_solution(f"gnat=8888.0.0 (gnat_native) (origin: binary_archive)",
escape=True)

Expand Down

0 comments on commit be0ad22

Please sign in to comment.