X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcepackage.cpp;h=2cefeb871065e76434d10642fa57dd7928f61b9f;hb=766dad2d4f7ca73dc182f22e306ba0def6fd8722;hp=cb4f978aedba7c6e61c5fb4f8719e67e05f0123f;hpb=5ed38947b3fabd977a7f68b512115fe1456ea096;p=builder.git diff --git a/source/sourcepackage.cpp b/source/sourcepackage.cpp index cb4f978..2cefeb8 100644 --- a/source/sourcepackage.cpp +++ b/source/sourcepackage.cpp @@ -37,12 +37,7 @@ SourcePackage::SourcePackage(Builder &b, const string &n, const FS::Path &f): source_tarball = &components.back(); } -void SourcePackage::set_build_type(const BuildType &t) -{ - build_type = &t; -} - -FS::Path SourcePackage::get_temp_dir() const +FS::Path SourcePackage::get_temp_directory() const { string subdir = builder.get_current_arch().get_name(); if(build_type) @@ -58,7 +53,7 @@ FS::Path SourcePackage::get_temp_dir() const return source_dir/temp/subdir; } -FS::Path SourcePackage::get_out_dir() const +FS::Path SourcePackage::get_output_directory() const { const Architecture &arch = builder.get_current_arch(); if(arch.is_native()) @@ -88,6 +83,11 @@ bool SourcePackage::match_feature(const string &cond) const } } +void SourcePackage::set_build_type(const BuildType &t) +{ + build_type = &t; +} + void SourcePackage::do_prepare() { BuildInfo final_build_info;