buildpackage_rpm: fix crash when running prebuild hook
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 30 Jun 2014 14:12:48 +0000 (17:12 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:47:20 +0000 (14:47 +0200)
GitRepository.git_dir is not callable.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/buildpackage_rpm.py

index 6dc5b59710a6bd608fab7d8241c05f28d7832b73..20230abddb58f74f36a5218c1de3100fc186fbea 100755 (executable)
@@ -640,7 +640,7 @@ def main(argv):
             if not options.export_only and not options.tag_only:
                 if options.prebuild:
                     RunAtCommand(options.prebuild, shell=True,
-                                 extra_env={'GBP_GIT_DIR': repo.git_dir(),
+                                 extra_env={'GBP_GIT_DIR': repo.git_dir,
                                             'GBP_BUILD_DIR': export_dir})(dir=export_dir)
 
                 # Finally build the package: