From 33ea083a124a4e60b50be7870cf14151bb5a7e0f Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 15 Jul 2014 13:45:06 +0300 Subject: buildpackage-rpm: get rid of prepare_export_dir() No need to mangle the export directory. Signed-off-by: Markus Lehtonen --- gbp/scripts/buildpackage_rpm.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gbp/scripts/buildpackage_rpm.py b/gbp/scripts/buildpackage_rpm.py index 1af5b06b..c84b0a2e 100755 --- a/gbp/scripts/buildpackage_rpm.py +++ b/gbp/scripts/buildpackage_rpm.py @@ -116,12 +116,6 @@ def makedir(dir): return dir -def prepare_export_dir(dir): - if not dir: - dir = 'rpmbuild' - return makedir(dir) - - def pristine_tar_build_orig(repo, orig_file, output_dir, options): """ build orig using pristine-tar @@ -584,7 +578,7 @@ def main(argv): export_patches(repo, spec, patch_tree, options) # Prepare final export dirs - export_dir = prepare_export_dir(options.export_dir) + export_dir = makedir(options.export_dir) source_dir = makedir(os.path.join(export_dir, options.source_dir)) spec_dir = makedir(os.path.join(export_dir, options.spec_dir)) -- cgit v1.2.3