builpackage-rpm: Use GBP_TMP_DIR instead f GBP_BUILD_DIR
authorGuido Günther <agx@sigxcpu.org>
Sun, 28 Oct 2018 11:40:12 +0000 (12:40 +0100)
committerGuido Günther <agx@sigxcpu.org>
Sun, 28 Oct 2018 11:40:12 +0000 (12:40 +0100)
This is consistent with --git-post-export and unbreaks

    tests/component/rpm/test_buildpackage_rpm.py:TestGbpRpm.test_hook_options

docs/manpages/gbp-buildpackage-rpm.xml
gbp/scripts/buildpackage_rpm.py

index 18a0a1e18c6dffb27e12b8790cd55488ad012683..00e838ace33cd03ff2a4a7a44060e287e253dd19 100644 (file)
           <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>
index 952ff2479321e6337f6ad9a52b054f18674d02cb..30f27f67054b91654fa23fa211b9a3a102af61e1 100644 (file)
@@ -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