Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/tools/iron/client/application/tasks/list/iron_list_task.e
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ feature -- Execute
if not l_only_conflict or else l_has_conflict then
print (p.item.human_identifier)
if l_has_conflict then
print (" [Conflict!] ")
print (" [conflict!] ")
end
print_new_line
if args.verbose then
Expand Down Expand Up @@ -137,8 +137,8 @@ feature -- Execute
if a_iron.installation_api.is_package_installed (p.item) then
print (" [installed] ")
end
if l_has_conflict then
print (" [conflict!] ")
if l_has_conflict and then attached l_package_names.item (p.item.identifier) as l_earlier_package then
Copy link
Member

@jocelyn jocelyn Sep 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do

if l_has_conflict then
    if attached l_package_names.item (p.item.identifier) as l_earlier_package then
        print (" [ignoring this package as it is also listed in the " + l_earlier_package.repository.location_string + " repository!] ")
    else
        print (" [Conflict!] ")
    end

otherwise, the conflict may not be reported... even if it is likely that l_earlier_package is set.

print (" [ignoring this package as it is also listed in the " + l_earlier_package.repository.location_string + " repository!] ")
end
print_new_line
if args.verbose then
Expand Down