summaryrefslogtreecommitdiffstats
path: root/cobbler/action_import.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-16 11:44:36 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-04-16 11:44:36 -0400
commitd8b696d10eac14603729f45c4ff232734f28e7a7 (patch)
tree9ebdf5dde20b591ab4d2d38374cf11c9ee896383 /cobbler/action_import.py
parentd24ca2fb2a0063d16bd95916de9300255e22cbc7 (diff)
downloadthird_party-cobbler-d8b696d10eac14603729f45c4ff232734f28e7a7.tar.gz
third_party-cobbler-d8b696d10eac14603729f45c4ff232734f28e7a7.tar.xz
third_party-cobbler-d8b696d10eac14603729f45c4ff232734f28e7a7.zip
Turning off core-repo mirror feature by default, as most enterprise
deployments may not want this behavior, and it is not ideal with RHN setups. Changed manpage docs appropriately. Also fixing bug where source_repo detection went up one directory to high...
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 83874e3..e4dbc11 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -259,7 +259,7 @@ class Importer:
print "- traversing distro %s" % distro.name
if distro.kernel.find("ks_mirror") != -1:
basepath = os.path.dirname(distro.kernel)
- top = "/".join(basepath.split("/")[0:-3]) # up one level
+ top = "/".join(basepath.split("/")[0:-2]) # up one level
print "- descent into %s" % top
os.path.walk(top, self.repo_scanner, distro)
else: