summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-05-12 14:15:40 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-05-12 14:15:40 -0400
commitbdcdc5b244ea5deb35ff92787e1fb4068968d9dd (patch)
treed3be942454bcb6fa8cd44447e6054cd37a9a8821 /cobbler
parent402ff49f5dd70671575e25d5224792f59a0c8408 (diff)
downloadthird_party-cobbler-bdcdc5b244ea5deb35ff92787e1fb4068968d9dd.tar.gz
third_party-cobbler-bdcdc5b244ea5deb35ff92787e1fb4068968d9dd.tar.xz
third_party-cobbler-bdcdc5b244ea5deb35ff92787e1fb4068968d9dd.zip
Apply patch to remove anti-createrepo conditions, bump version.
Diffstat (limited to 'cobbler')
-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 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)