aboutsummaryrefslogtreecommitdiff
path: root/paludis/ndbam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/ndbam.cc')
-rw-r--r--paludis/ndbam.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/paludis/ndbam.cc b/paludis/ndbam.cc
index c07f39ec0..cd2d22e87 100644
--- a/paludis/ndbam.cc
+++ b/paludis/ndbam.cc
@@ -594,8 +594,14 @@ NDBAM::parse_contents(const PackageID & id,
if (tokens.count("part"))
part = tokens.find("part")->second;
+ bool isvolatile = false;
+ if (tokens.count("volatile"))
+ isvolatile = destringify<bool>(tokens.find("volatile")->second);
+
std::shared_ptr<ContentsSymEntry> entry(std::make_shared<ContentsSymEntry>(FSPath(path), target, part));
entry->add_metadata_key(std::make_shared<LiteralMetadataTimeKey>("mtime", "mtime", mkt_normal, Timestamp(mtime, 0)));
+ if (isvolatile)
+ entry->add_metadata_key(std::make_shared<LiteralMetadataValueKey<bool> >("volatile", "volatile", mkt_normal, isvolatile));
on_sym(entry);
}
else