Skip to content

Commit aa71400

Browse files
CP-53444: For XenServer 9, remove python dnf plugins
DNF has been updated to dnf5 in XenServer 9 and no longer provides `dnf` python module. We've rewritten the plugins using C++ for dnf5 and built them as rpm packages Signed-off-by: Stephen Cheng <[email protected]>
1 parent 8e48cb2 commit aa71400

File tree

8 files changed

+0
-308
lines changed

8 files changed

+0
-308
lines changed

python3/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ IPROG=../scripts/install.sh 755
55
IDATA=../scripts/install.sh 644
66

77
SITE3_DIR=$(shell python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
8-
DNF_PLUGIN_DIR=dnf-plugins
98

109
install:
1110
# Create destination directories using install -m 755 -d:
@@ -16,12 +15,9 @@ install:
1615
install -m 755 -d $(DESTDIR)/etc/sysconfig
1716
install -m 755 -d $(DESTDIR)/usr/lib/systemd/system
1817
install -m 755 -d $(DESTDIR)$(EXTENSIONDIR)
19-
install -m 755 -d $(DESTDIR)$(SITE3_DIR)/$(DNF_PLUGIN_DIR)
2018

2119
$(IDATA) packages/inventory.py $(DESTDIR)$(SITE3_DIR)/
2220
$(IDATA) packages/observer.py $(DESTDIR)$(SITE3_DIR)/
23-
$(IDATA) dnf_plugins/accesstoken.py $(DESTDIR)$(SITE3_DIR)/$(DNF_PLUGIN_DIR)/
24-
$(IDATA) dnf_plugins/ptoken.py $(DESTDIR)$(SITE3_DIR)/$(DNF_PLUGIN_DIR)/
2521

2622
$(IPROG) libexec/metrics.py $(DESTDIR)$(OPTDIR)/debug
2723
$(IPROG) libexec/metricsgraph.py $(DESTDIR)$(OPTDIR)/debug

python3/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ run by xapi and other daemons.
1010
- packages: This contains files to be installed in python's site-packages and are meant
1111
to be modules and packages to be imported by other scripts or executed via python3 -m
1212
- plugins: This contains files that are meant to be xapi plugins
13-
- dnf-plugins: This contains dnf-plugins and are meant to be called automatically by dnf

python3/dnf_plugins/__init__.py

Whitespace-only changes.

python3/dnf_plugins/accesstoken.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

python3/dnf_plugins/ptoken.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

python3/dnf_plugins/xapitoken.py

Lines changed: 0 additions & 49 deletions
This file was deleted.

python3/stubs/dnf.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

python3/tests/test_dnf_plugins.py

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)