Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gbp/scripts/buildpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def main(argv):

# Export to another build dir if requested:
if options.export_dir:
export_source(repo, tree, source, options, tmp_dir, tarball_dir)
export_source(repo, tree, source, options, tmp_dir, output_dir)

# Run postexport hook
if options.postexport:
Expand Down
8 changes: 8 additions & 0 deletions tests/component/deb/test_buildpackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ def test_export_dir_buildpackage(self, repo):
self._test_buildpackage(repo, ['--git-export-dir=../foo/bar'])
ok_(os.path.exists('../foo/bar'))

@RepoFixtures.quilt30()
def test_export_dir_with_tarball_dir_buildpackage(self, repo):
"""Test that building with a export dir and tarball dir (without the actual tarball) works"""
self._test_buildpackage(repo, ['--git-export-dir=../foo/bar',
'--git-tarball-dir=../foo',
'--git-overlay'])
ok_(os.path.exists('../foo/bar'))

@RepoFixtures.quilt30_additional_tarball()
def test_export_dir_additional_tar(self, repo):
"""Test that building with a export dir and additional tarball works"""
Expand Down