diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-03-07 17:07:00 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-03-07 17:07:00 -0500 |
commit | 0730f44bd1886e68118df8deed1735953d6ebb35 (patch) | |
tree | 1f34926647fd81609207fe0ce8cdb96789b6185b /cobbler/action_reposync.py | |
parent | 64309dd05411ee5b8ca294da58ddac9ffc882168 (diff) | |
download | third_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.py | 2 |
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) |