fix typo getuid usage
authorZhang Qiang <qiang.z.zhang@intel.com>
Tue, 5 Jun 2012 07:03:06 +0000 (15:03 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Tue, 5 Jun 2012 07:03:06 +0000 (15:03 +0800)
gitbuildsys/cmd_build.py

index 45cdbaf05c33059df2dba774cf8ec358986743cd..4b783e986f74aa4ff2aa87314df488f503edf557 100644 (file)
@@ -327,7 +327,7 @@ def do(opts, args):
                 (spec.name, spec.version)]
 
     # if current user is root, don't run with sucmd
-    if os.getuid == 0:
+    if os.getuid() == 0:
         os.environ['GBS_BUILD_REPOAUTH'] = repo_auth_conf
     else:
         sucmd = configmgr.get('su-wrapper', 'build').split()