From 1799cc26a19cd19acfe7a866561b70e6de632481 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Mon, 30 Jun 2014 17:12:48 +0300 Subject: [PATCH] buildpackage_rpm: fix crash when running prebuild hook GitRepository.git_dir is not callable. Signed-off-by: Markus Lehtonen --- gbp/scripts/buildpackage_rpm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py index 6dc5b59..20230ab 100755 --- a/gbp/scripts/buildpackage_rpm.py +++ b/gbp/scripts/buildpackage_rpm.py @@ -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: -- 2.7.4