Commit caa586a1 authored by Guido Günther's avatar Guido Günther

builpackage-rpm: Use GBP_TMP_DIR instead f GBP_BUILD_DIR

This is consistent with --git-post-export and unbreaks

    tests/component/rpm/test_buildpackage_rpm.py:TestGbpRpm.test_hook_options
parent ce6b1e75
......@@ -347,7 +347,8 @@
<para>
Exported environment variables are: <envar>GBP_GIT_DIR</envar> (the
repository the package is being built from),
<envar>GBP_BUILD_DIR</envar> (the build dir).
<envar>GBP_TMP_DIR</envar> (the temporary directory where the sources
have been initially exported).
</para>
</listitem>
</varlistentry>
......
......@@ -540,7 +540,7 @@ def main(argv):
if options.preexport:
RunAtCommand(options.preexport, shell=True,
extra_env={'GBP_GIT_DIR': repo.git_dir,
'GBP_BUILD_DIR': export_dir}
'GBP_TMP_DIR': export_dir}
)()
# Move packaging files to final export dir
......
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