#1227 Failure to compare packages due to arch=None
Closed: Fixed by lsedlar. Opened 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).

Proposed fix: https://pagure.io/pungi/pull-request/1231

Commit 8d00f561 fixes this issue

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

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/pungi/pungi/issues/1227

Please continue any further discussion there.

Metadata
Related Pull Requests