filename)))
# get names and content of .ks files from rpm
if is_imageconf:
- self.load_imagedata(name, fpath)
+ self.load_imagedata(fpath)
# Generate or update build.xml
self.update_builddata(name, repo_dirs)
"""
return bool(self.imagedata.images)
- def load_imagedata(self, repo, rpm):
+ def load_imagedata(self, rpm):
"""
Args:
Raises: ImageDataError
"""
- self.imagedata.extract_image_conf(rpm, repo)
+ self.imagedata.extract_image_conf(rpm)
def gen_image_info(self, updated_ks=None):
"""
raise LocalError("Image configuration not found in %s" %
snapshot.path)
for rpm in img_conf_list:
- repomaker.load_imagedata(repo['Name'], rpm)
+ repomaker.load_imagedata(rpm)
# whether exist ks poin to the repo
if not repomaker.has_images():