build: Move build number warning to the end
Otherwise it prints this warning for each sub-package.
This commit is contained in:
@@ -1079,7 +1079,6 @@ class Builder:
|
||||
# build number
|
||||
if ctx.config.options.ignore_build_no or not ctx.config.values.build.buildno:
|
||||
build_no = old_build_no = None
|
||||
ctx.ui.warning(_('Build number is not available. For repo builds you must enable buildno in pisi.conf.'))
|
||||
else:
|
||||
build_no, old_build_no = self.calc_build_no(package.name)
|
||||
|
||||
@@ -1149,6 +1148,12 @@ class Builder:
|
||||
os.environ.clear()
|
||||
os.environ.update(ctx.config.environ)
|
||||
|
||||
if ctx.config.options.ignore_build_no or \
|
||||
not ctx.config.values.build.buildno:
|
||||
ctx.ui.warning(_("Build numbers were not used as requested. For "
|
||||
"repository builds, you must enable 'buildno' "
|
||||
"option in pisi.conf."))
|
||||
|
||||
return self.new_packages, self.old_packages
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user