[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20230209-62-ge89117d
Jon Turney
jturney@sourceware.org
Thu Jan 18 20:31:14 GMT 2024
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',
More information about the Cygwin-apps-cvs
mailing list