Skip to content

Commit 4a9ef2a

Browse files
authored
CP-53444: For XenServer 9, remove python dnf plugins (#6326)
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 - No regression issue, XS8 -- 213226 (Dev Run) Repository update **pass** (XS8 uses yum, so no impact) - Fix some XS9 issue, but please note there're still other issues will be addressed later. -- 213325 (Dev Run) Repository update
2 parents 90ef043 + aa71400 commit 4a9ef2a

File tree

8 files changed

+0
-308
lines changed

8 files changed

+0
-308
lines changed

python3/Makefile

-4
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

-1
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

-46
This file was deleted.

python3/dnf_plugins/ptoken.py

-32
This file was deleted.

python3/dnf_plugins/xapitoken.py

-49
This file was deleted.

python3/stubs/dnf.py

-12
This file was deleted.

python3/tests/test_dnf_plugins.py

-164
This file was deleted.

0 commit comments

Comments
 (0)