summaryrefslogtreecommitdiffstats
path: root/cobbler/action_reposync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-13 12:18:33 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-13 12:18:33 -0400
commitb4f9f91a9eca52ec73aba8d6dcaa136fc12035e6 (patch)
tree45d52afc7d39c39e660e4ac494c71e0edfb4969f /cobbler/action_reposync.py
parentb274d671a4f2cf5ae35724c4fd496c33c05b12c6 (diff)
downloadthird_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.py2
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