[firstboot][PATCH] Translate the error message if not run as root

Brian C. Lane bcl at redhat.com
Fri Jan 10 01:35:10 UTC 2014


On Wed, Jan 08, 2014 at 02:31:03PM +0100, Vratislav Podzimek wrote:
> Related: rhbz#1044339
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  progs/firstboot | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/progs/firstboot b/progs/firstboot
> index 7f85b70..89a4cc2 100755
> --- a/progs/firstboot
> +++ b/progs/firstboot
> @@ -97,7 +97,7 @@ if __name__ == '__main__':
>  
>      # only root can do this
>      if not os.geteuid() == 0:
> -        print >> sys.stderr, 'only root can do this'
> +        print >> sys.stderr, _('only root can do this')
>          sys.exit(1)
>  
>      parser = optparse.OptionParser()
> -- 
> 1.8.4.2

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list