Skip to content

Commit

Permalink
Seems that sometime replacing packages could be more than one
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Sep 15, 2024
1 parent 7a0665e commit 74d5172
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dnfdragora/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ def run(self, pkglist):
for name in pkglist[action].keys():
pkgid, size, replaces = (None, None, None)
if len(pkglist[action][name]) > 2:
pkgid, size, replaces = pkglist[action][name]
pkgid, size = pkglist[action][name][:2]
replaces = pkglist[action][name][2:]
else:
pkgid, size = pkglist[action][name]

Expand All @@ -402,9 +403,10 @@ def run(self, pkglist):
level2Item.this.own(False)
total_size += size
if replaces:
label = _("replacing ") + replaces
item = yui.YTreeItem(level2Item, label, False)
item.this.own(False)
for rep in replaces:
label = _("replacing ") + rep
item = yui.YTreeItem(level2Item, label, False)
item.this.own(False)

itemVect.append(level1Item)

Expand Down

0 comments on commit 74d5172

Please sign in to comment.