diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-13 12:18:33 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-04-13 12:18:33 -0400 |
commit | b4f9f91a9eca52ec73aba8d6dcaa136fc12035e6 (patch) | |
tree | 45d52afc7d39c39e660e4ac494c71e0edfb4969f /cobbler/action_reposync.py | |
parent | b274d671a4f2cf5ae35724c4fd496c33c05b12c6 (diff) | |
download | third_party-cobbler-b4f9f91a9eca52ec73aba8d6dcaa136fc12035e6.tar.gz third_party-cobbler-b4f9f91a9eca52ec73aba8d6dcaa136fc12035e6.tar.xz third_party-cobbler-b4f9f91a9eca52ec73aba8d6dcaa136fc12035e6.zip |
More generalized fix to aborted-createrepo ".olddata" problems, which now
applies to "cobbler reposync" as well as "cobbler import".
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 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 |