ask build package as root

üst 16fbe7c5
......@@ -238,6 +238,12 @@ class Builder:
# Don't wait until creating .inary file for complaining about versioning
# scheme errors
if os.getuid() == 0:
# Compile package as root user is dangerous.
if not self.emerge and not ctx.ui.confirm(
_("Would you like to compile package as root user?")):
raise Error(_("Operation canceled."))
self.package_rfp = None
if self.spec.source.rfp:"[ !!! ] Building RFP for {}").format(self.spec.source.rfp),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment