Hi
Createrepo is not run by cobbler after each reposync if there is
not a folder "RPMS" in it.
As createrepo walks into subfolders, it's not needed to join that
path that renders other repos unusable as there's no repodata folder for
yum to use.
This patch removes that requirement to make it work with repo's
with no RPMS folder on it.
Regards
Pablo
--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:
Si se encuentra bien, no se preocupe. Se le pasará
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index d6b30bc..495aa3a 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -285,7 +285,7 @@ class RepoSync:
"""
Used to run createrepo on a copied mirror.
"""
- if os.path.exists(os.path.join(dirname,"RPMS")) or repo.is_rsync_mirror():
+ if os.path.exists(dirname) or repo.is_rsync_mirror():
utils.remove_yum_olddata(dirname)
try:
cmd = "createrepo %s %s" % (repo.createrepo_flags, dirname)
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools