#1227 Failure to compare packages due to arch=None
Closed: Fixed 4 years ago by lsedlar. Opened 4 years ago by james.

When running pungi for a custom compose it tracebacks in pungi/phases/gather/methods/method_deps.py:_format_packages(pkgs) due to the sorted(). This appears to be because some of the packages have arch=None.


This is a patch which works around the problem, but I'm not sure if you want this or to get to the source of the problem:

pungi.patch

The source of the problem is that Python 3 is more strict in what it is willing to sort. It only happens if the same package name is listed both with and without architecture.

It will also happen if an instance of RpmWrapper appears in the list (which can happen in some circumstances).

Metadata Update from @lsedlar:
- Issue set to the milestone: 4.1.39

4 years ago

Login to comment on this ticket.

Metadata
Attachments 1
Attached 4 years ago View Comment
Related Pull Requests
  • #1231 Merged 4 years ago