public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kalev Lember <klember@redhat.com>
To: git-commits@fedoraproject.org
Subject: [flatpaks/flatpak-runtime] f45: Prefer python3- subpackages over python2-
Date: Fri, 11 Sep 2026 14:41:00 GMT	[thread overview]
Message-ID: <178913766092.1.6968698258502271925.flatpaks-flatpak-runtime-3308431a4aab@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : flatpaks/flatpak-runtime
            Branch : f45
            Commit : 3308431a4aabf7f81f4aeb9ed4b056e4aeaecdfa
            Author : Kalev Lember <klember@redhat.com>
            Date   : 2020-03-20T21:51:58+01:00
            Stats  : +5/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/3308431a4aabf7f81f4aeb9ed4b056e4aeaecdfa?branch=f45

            Log:
            Prefer python3- subpackages over python2-

This can happen when both python3-foo and python2-foo versions of the
same package provide same files.

---
diff --git a/tools/util.py b/tools/util.py
index 7604bbf..c1f0379 100644
--- a/tools/util.py
+++ b/tools/util.py
@@ -56,6 +56,11 @@ def package_cmp(p1, p2):
     elif n2.startswith('compat-') and not n1.startswith('compat-'):
         return -1
 
+    if n1.startswith('python2-') and n2.startswith('python3-'):
+        return 1
+    elif n1.startswith('python3-') and n2.startswith('python2-'):
+        return -1
+
     if n1 < n2:
         return -1
     elif n1 > n2:

                 reply	other threads:[~2026-09-11 14:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178913766092.1.6968698258502271925.flatpaks-flatpak-runtime-3308431a4aab@fedoraproject.org \
    --to=klember@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox