public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon Turney <jturney@sourceware.org>
To: cygwin-apps-cvs@sourceware.org
Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20230209-62-ge89117d
Date: Thu, 18 Jan 2024 20:31:14 +0000 (GMT)	[thread overview]
Message-ID: <20240118203114.903B33858D37@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=e89117dab2e2bc6c961981bd8054ea4c437787f1

commit e89117dab2e2bc6c961981bd8054ea4c437787f1
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Thu Jan 18 20:25:41 2024 +0000

    Add a quick hack to rewrite some historical python dependencies
    
    I'm not sure why these didn't get flagged up as missing dependencies,
    but using the now removed, obsoleted package name causes the solver to
    want to uninstall anything which depends on these, whic isn't helpful
    right now...


Diff:
---
 calm/package.py       |  2 +-
 calm/past_mistakes.py | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/calm/package.py b/calm/package.py
index f70fb98..8ab9ed0 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -245,7 +245,7 @@ def process_package_constraint_list(pcl):
                     deplist[item] = item + ' ' + r
             else:
                 item = r
-                deplist[item] = item
+                deplist[item] = past_mistakes.substitute_dependency.get(r, r)
 
     # return a sorted list of package names with an optional version constraint.
     return sorted(deplist.values())
diff --git a/calm/past_mistakes.py b/calm/past_mistakes.py
index c8fbde9..0a039a5 100644
--- a/calm/past_mistakes.py
+++ b/calm/past_mistakes.py
@@ -209,6 +209,23 @@ nonexistent_provides = historical_provides + [
     r'tl_basic_\d+',
 ]
 
+substitute_dependency = {
+    'python-gi': 'python27-gi',
+    'python2-avogadro': 'python27-avogadro',
+    'python2-dbus': 'python27-dbus',
+    'python2-gi': 'python27-gi',
+    'python2-ipaddr': 'python27-ipaddr',
+    'python2-libvirt': 'python27-libvirt',
+    'python2-libxml2': 'python27-libxml2',
+    'python2-magic': 'python27-magic',
+    'python2-nghttp2': 'python27-nghttp2',
+    'python2-numpy': 'python27-numpy',
+    'python2-pyqt5': 'python27-pyqt5',
+    'python2-request': 'python27-request',
+    'python2-six': 'python27-six',
+    'python2-xdg': 'python27-xdg',
+}
+
 # provides: which don't exist and packages which require them should be expired
 expired_provides = [
     'python2',


                 reply	other threads:[~2024-01-18 20:31 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=20240118203114.903B33858D37@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).