]> git.tdb.fi Git - builder.git/commitdiff
Allow omitting workdir in ExternalTask constructor call
authorMikko Rasa <tdb@tdb.fi>
Fri, 8 Jun 2012 07:30:05 +0000 (10:30 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:53 +0000 (00:08 +0300)
source/builder.cpp
source/externaltask.h

index 2591fc35bbfdd90333e3556d53fa8ecb07811081..0cbcb222039630b8f6e522da4496d4c3625fa292 100644 (file)
@@ -321,7 +321,7 @@ string Builder::run_pkgconfig(const string &pkg, const string &what)
        if(verbose>=4)
                IO::print("Running %s\n", join(argv.begin(), argv.end()));
 
-       ExternalTask task(argv, FS::Path());
+       ExternalTask task(argv);
        task.set_stdout(ExternalTask::CAPTURE);
        task.set_stderr(ExternalTask::IGNORE);
        task.start();
index c9bc823112db7b3cb55eb7eeea043b2a94f140d1..1b330ff745afd235d31638c87e63ff23adf0bae3 100644 (file)
@@ -30,7 +30,7 @@ private:
        std::string output;
 
 public:
-       ExternalTask(const Arguments &, const Msp::FS::Path &);
+       ExternalTask(const Arguments &, const Msp::FS::Path & = Msp::FS::Path());
        virtual ~ExternalTask();
 
        virtual std::string get_command() const;