if is_imageconf:
self.load_imagedata(fpath)
- # Save build configuration file if provided
- if buildconf:
- confpath = os.path.join(repo_dir, "%s-build.conf" % name)
- with open(confpath, 'w') as conf:
- conf.write(buildconf)
-
# Generate or update build.xml
- self.update_builddata(name, dirs, buildconf)
+ self.update_builddata(name, dirs)
# Run createrepo
for _rtype, _rarch, rpath in dirs:
os.system('modifyrepo %s %s' % (metafile,
os.path.join(rpath, "repodata")))
+ # update build configuration file to repodata
+ if buildconf:
+ confpath = os.path.join(rpath, "repodata",
+ 'build.conf')
+ with open(confpath, 'w') as conf:
+ conf.write(buildconf)
+ os.system('modifyrepo %s %s' % (confpath,
+ os.path.join(rpath, "repodata")))
+
# sign if gpg_key is provided
if gpg_key and os.path.exists(signer) and os.access(signer, os.X_OK):
for _rtype, _rarch, rpath in dirs: