Createrepo is Python 2 only and uses yum which
will never be ported to Python 3. So use
createrepo_c which is written in C and thus
Python independent and faster.
Signed-off-by: Martin Kolman <mkolman(a)redhat.com>
---
anaconda.spec.in | 2 +-
pyanaconda/packaging/yumpayload.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/anaconda.spec.in b/anaconda.spec.in
index 11a51af..0f5d55a 100644
--- a/anaconda.spec.in
+++ b/anaconda.spec.in
@@ -122,7 +122,7 @@ Requires: openssh
%endif
Requires: isomd5sum >= %{isomd5sum}
Requires: yum-utils >= %{yumutilsver}
-Requires: createrepo
+Requires: createrepo_c
Requires: NetworkManager >= %{nmver}
Requires: dhclient
Requires: libselinux-python
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index c05d36a..9b75ffd 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -1289,7 +1289,7 @@ reposdir=%s
if not rpms:
continue
log.info("Running createrepo on %s", repo)
- iutil.execWithRedirect("createrepo", [repo])
+ iutil.execWithRedirect("createrepo_c", [repo])
ks_repo = self.data.RepoData(name="DD-%d" % dir_num,
baseurl="file://"+repo,
--
1.9.3