diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-01-09 16:51:58 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-01-09 16:51:58 -0500 |
commit | b29a6c5cb670673440ccca7b656205a4351a0ca1 (patch) | |
tree | 40ad0dcba6ba569ac44c0ff5771365809ef1a01c /cobbler/action_import.py | |
parent | 7a38e128564200c31a4249f9f63828b027e6b593 (diff) | |
download | third_party-cobbler-b29a6c5cb670673440ccca7b656205a4351a0ca1.tar.gz third_party-cobbler-b29a6c5cb670673440ccca7b656205a4351a0ca1.tar.xz third_party-cobbler-b29a6c5cb670673440ccca7b656205a4351a0ca1.zip |
Fix for comps.xml name change
Diffstat (limited to 'cobbler/action_import.py')
-rw-r--r-- | cobbler/action_import.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/action_import.py b/cobbler/action_import.py index bbfc220..f3707be 100644 --- a/cobbler/action_import.py +++ b/cobbler/action_import.py @@ -364,7 +364,7 @@ class Importer: for x in fnames: if x == "base" or x == "repodata": # only run the repo scanner on directories that contain a comps.xml - gloob1 = glob.glob("%s/%s/comps*.xml" % (dirname,x)) + gloob1 = glob.glob("%s/%s/*comps*.xml" % (dirname,x)) if len(gloob1) >= 1: if matches.has_key(dirname): print _("- looks like we've already scanned here: %s") % dirname @@ -373,7 +373,7 @@ class Importer: self.process_comps_file(dirname, distro) matches[dirname] = 1 else: - print _("- directory %s is missing comps.xml, skipping") % dirname + print _("- directory %s is missing xml comps file, skipping") % dirname continue # ---------------------------------------------------------------------- @@ -392,7 +392,7 @@ class Importer: # figure out what our comps file is ... print _("- looking for %(p1)s/%(p2)s/comps*.xml") % { "p1" : comps_path, "p2" : masterdir } - files = glob.glob("%s/%s/comps*.xml" % (comps_path, masterdir)) + files = glob.glob("%s/%s/*comps*.xml" % (comps_path, masterdir)) if len(files) == 0: print _("- no comps found here: %s") % os.path.join(comps_path, masterdir) return # no comps xml file found |