From b4f9f91a9eca52ec73aba8d6dcaa136fc12035e6 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 13 Apr 2007 12:18:33 -0400 Subject: More generalized fix to aborted-createrepo ".olddata" problems, which now applies to "cobbler reposync" as well as "cobbler import". --- 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 1801071..f0febd8 100644 --- a/cobbler/action_reposync.py +++ b/cobbler/action_reposync.py @@ -15,7 +15,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import os import os.path -import shutil import time import yaml # Howell-Clark version import sub_process @@ -250,6 +249,7 @@ class RepoSync: target_dir = os.path.dirname(dirname).split("/")[-1] print "- scanning: %s" % target_dir if target_dir.lower() in [ "i386", "x86_64", "ia64" ] or (arg is None): + utils.remove_yum_olddata(dirname) try: cmd = "createrepo %s" % dirname print cmd -- cgit