Skip to content

Commit

Permalink
Fix: Write data url to updstes.config.
Browse files Browse the repository at this point in the history
  • Loading branch information
logzero committed Oct 20, 2011
1 parent 79471d6 commit 9483354
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/autoupdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

const std::string AVAILABLE_PREFIX = "available_";

AUTOUPDATE::AUTOUPDATE() :
AUTOUPDATE::AUTOUPDATE() :
url("http://vdrift.svn.sourceforge.net/viewvc/vdrift/vdrift-data/")
{
// Constructor
Expand Down Expand Up @@ -58,6 +58,9 @@ bool AUTOUPDATE::Write(const std::string & path) const
for (pair_type::const_iterator p = formats.begin(); p != formats.end(); p++)
conf.SetParam("formats", p->first, p->second);

// Write data url.
conf.SetParam("", "url", url);

// Write to disk.
return conf.Write(true, path);
}
Expand Down

0 comments on commit 9483354

Please sign in to comment.