summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_import.py1
-rw-r--r--cobbler/action_sync.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index f61a85f..aad4756 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -222,6 +222,7 @@ class Importer:
# they'll share same repo files.
if not processed_repos.has_key(comps_path):
cmd = "createrepo --groupfile %s %s" % (comps_file, comps_path)
+ print "- %s" % cmd
sub_process.call(cmd,shell=True)
print "- repository updated"
processed_repos[comps_path] = 1
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index ebf5a91..47e61ce 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -398,7 +398,7 @@ class BootSync:
repo = self.repos.find(r)
if repo is None:
continue
- if not (repo.local_filename is None and repo.local_filename != ""):
+ if not (repo.local_filename is None) or (repo.local_filename == ""):
buf = buf + "wget http://%s/cobbler_track/repo_mirror/%s/config.repo --output-document=/etc/yum.repos.d/%s.repo\n" % (self.settings.server, repo.name, repo.local_filename)
return buf