summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-28 16:00:16 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-28 16:00:16 +0000
commit15137597824b263c875bd427f7d121eae28d45a6 (patch)
treecb6dc61e13822c103ece293f875e85dab24823c0 /src/dcp.cc
parent4126980a15f4f6bb981d0793bd37483456c5bc79 (diff)
Various fixes.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index e4a5678c..2588c654 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -61,6 +61,7 @@ DCP::DCP (boost::filesystem::path directory)
: _directory (directory)
{
boost::filesystem::create_directories (directory);
+ _directory = boost::filesystem::canonical (_directory);
}
void
@@ -314,7 +315,7 @@ DCP::write_assetmap (Standard standard, string pkl_uuid, int pkl_length, XMLMeta
chunk->add_child("Length")->add_child_text (lexical_cast<string> (pkl_length));
for (list<shared_ptr<Asset> >::const_iterator i = _assets.begin(); i != _assets.end(); ++i) {
- (*i)->write_to_assetmap (asset_list);
+ (*i)->write_to_assetmap (asset_list, _directory);
}
/* This must not be the _formatted version otherwise signature digests will be wrong */