summaryrefslogtreecommitdiffstats
path: root/cobbler/action_import.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-12-04 18:18:39 -0500
committerJim Meyering <jim@meyering.net>2006-12-04 18:18:39 -0500
commite351e67d48066ca187abf6f12c114b4f51bfdd31 (patch)
tree672f1f22ba2e23b32866545e07d418295287f7b2 /cobbler/action_import.py
parent787adbeb2aaa855dd9152e003f34ff1a252a067a (diff)
downloadthird_party-cobbler-e351e67d48066ca187abf6f12c114b4f51bfdd31.tar.gz
third_party-cobbler-e351e67d48066ca187abf6f12c114b4f51bfdd31.tar.xz
third_party-cobbler-e351e67d48066ca187abf6f12c114b4f51bfdd31.zip
Cobbler import should skip ISO's (they are not useful in a kickstart tree) and
PPC code (not supported, for now anyway) to save space.
Diffstat (limited to 'cobbler/action_import.py')
-rw-r--r--cobbler/action_import.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 486842e..cbd8c36 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -97,7 +97,7 @@ class Importer:
spacer = ""
if not self.mirror.startswith("rsync://"):
spacer = ' -e "ssh" '
- cmd = "rsync -az %s %s /var/www/cobbler/localmirror/%s --progress" % (spacer, self.mirror, self.mirror_name)
+ cmd = "rsync -a %s %s /var/www/cobbler/localmirror/%s --exclude */iso/*.iso --exclude=*/ppc/debug/* --exclude=*/ppc/os/* --exclude=*/ppc/tree/* --progress" % (spacer, self.mirror, self.mirror_name)
sub_process.call(cmd,shell=True)
update_file = open(os.path.join(self.path,"update.sh"),"w+")
update_file.write("#!/bin/sh")