summaryrefslogtreecommitdiffstats
path: root/cobbler/cobbler.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-10 18:27:39 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-10 18:27:39 -0400
commit28ebf5f306b0f60b7113d602c58e44acdc131ebc (patch)
tree091dfd215c184f16543bc1841fab0b0c5295c030 /cobbler/cobbler.py
parent11e433e9ea0e9db38e2dcc96f4b56fbc17b710df (diff)
downloadthird_party-cobbler-28ebf5f306b0f60b7113d602c58e44acdc131ebc.tar.gz
third_party-cobbler-28ebf5f306b0f60b7113d602c58e44acdc131ebc.tar.xz
third_party-cobbler-28ebf5f306b0f60b7113d602c58e44acdc131ebc.zip
This commit adds a --rpm-list parameter to "cobbler repo add". --rpm-list
allows for partial mirroring of RPM content from a yum repository using yumdownloader. An example of this would be wanting to have a local mirror of useful tools from FC6 Extras (cobbler and koan, possibly?) while not pulling down content that just takes up time/space (like 3D games). This will work for http:// and ftp:// repositories, but not RHN at this point. Incidentally this feature doesn't resolve dependencies at this point because yumdownloader is currently broken. See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=232183 So, for now, give all dependencies for --rpm-list and when yumdownloader gets fixed, the "--resolve" argument can be reinserted and this will be a lot more useful.
Diffstat (limited to 'cobbler/cobbler.py')
-rwxr-xr-xcobbler/cobbler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/cobbler.py b/cobbler/cobbler.py
index 03a07e7..36c457f 100755
--- a/cobbler/cobbler.py
+++ b/cobbler/cobbler.py
@@ -359,7 +359,8 @@ class BootCLI:
'--mirror-name' : lambda(a): repo.set_name(a),
'--mirror' : lambda(a): repo.set_mirror(a),
'--keep-updated' : lambda(a): repo.set_keep_updated(a),
- '--local-filename' : lambda(a): repo.set_local_filename(a)
+ '--local-filename' : lambda(a): repo.set_local_filename(a),
+ '--rpm-list' : lambda(a): repo.set_rpm_list(a)
}
on_ok = lambda: self.api.repos().add(repo)
return self.apply_args(args,commands,on_ok)