summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler/action_reposync.py')
-rw-r--r--cobbler/action_reposync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_reposync.py b/cobbler/action_reposync.py
index 462da47..32d38bd 100644
--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -260,7 +260,7 @@ class RepoSync:
"""
Used to run createrepo on a copied mirror.
"""
- if os.path.exists(os.path.join(dirname,"RPMS")) or not repo.is_rsync_mirror():
+ if os.path.exists(os.path.join(dirname,"RPMS")) or repo.is_rsync_mirror():
utils.remove_yum_olddata(dirname)
try:
cmd = "createrepo %s %s" % (repo.createrepo_flags, dirname)