public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [flatpaks/flatpak-runtime] f45: resolve-files.py: Favor non-compat packages over compat packages
@ 2026-09-11 14:40 Owen W. Taylor
  0 siblings, 0 replies; only message in thread
From: Owen W. Taylor @ 2026-09-11 14:40 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : flatpaks/flatpak-runtime
Branch : f45
Commit : b108f586bdd4a7cef117da3b36b2835db5185591
Author : Owen W. Taylor <otaylor@fishsoup.net>
Date   : 2018-01-31T11:21:01+01:00
Stats  : +5/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/b108f586bdd4a7cef117da3b36b2835db5185591?branch=f45

Log:
resolve-files.py: Favor non-compat packages over compat packages

---
diff --git a/resolve-files.py b/resolve-files.py
index e8f82f1..de5631f 100755
--- a/resolve-files.py
+++ b/resolve-files.py
@@ -294,6 +294,11 @@ def package_cmp(p1, p2):
     if a1 != 'i686' and a2 == 'i686':
         return -1
 
+    if n1.startswith('compat-') and not n2.startswith('compat-'):
+        return 1
+    elif n2.startswith('compat-') and not n1.startswith('compat-'):
+        return -1
+
     if n1 < n2:
         return -1
     elif n1 > n2:

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 14:40 [flatpaks/flatpak-runtime] f45: resolve-files.py: Favor non-compat packages over compat packages Owen W. Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox