From 0730f44bd1886e68118df8deed1735953d6ebb35 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 7 Mar 2008 17:07:00 -0500 Subject: Run reposync for local repos even if "RPM" is not contained in the path. --- cobbler/action_reposync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cobbler/action_reposync.py') 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) -- cgit