summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-03-07 17:07:00 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-03-07 17:07:00 -0500
commit0730f44bd1886e68118df8deed1735953d6ebb35 (patch)
tree1f34926647fd81609207fe0ce8cdb96789b6185b /cobbler/action_reposync.py
parent64309dd05411ee5b8ca294da58ddac9ffc882168 (diff)
downloadthird_party-cobbler-0730f44bd1886e68118df8deed1735953d6ebb35.tar.gz
third_party-cobbler-0730f44bd1886e68118df8deed1735953d6ebb35.tar.xz
third_party-cobbler-0730f44bd1886e68118df8deed1735953d6ebb35.zip
Run reposync for local repos even if "RPM" is not contained in the path.
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)