summaryrefslogtreecommitdiff
path: root/src/lib/kdm_cli.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-26 22:39:12 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-26 22:39:12 +0200
commit25ac279e5b7ae6593185230a0fe5a4022a6f689d (patch)
tree8162b3f10653fcfe06801342917b4e1df123d5a5 /src/lib/kdm_cli.cc
parent72d4e2249dc6af0a31f04ff412a7eae84ac3cc4f (diff)
Warn if you specify trusted devices with a formulation that won't use them.
Diffstat (limited to 'src/lib/kdm_cli.cc')
-rw-r--r--src/lib/kdm_cli.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/kdm_cli.cc b/src/lib/kdm_cli.cc
index b115412a7..1b625e50c 100644
--- a/src/lib/kdm_cli.cc
+++ b/src/lib/kdm_cli.cc
@@ -718,6 +718,11 @@ try
valid_to = valid_from.get() + duration_from_string(*duration_string);
}
+ if (!trusted_devices.empty() && (formulation != dcp::Formulation::MULTIPLE_MODIFIED_TRANSITIONAL_1 && formulation != dcp::Formulation::DCI_SPECIFIC)) {
+ out("You have given one or more trusted devices but the KDM formulation you specified will not write them to the KDM. "
+ "Consider using --formulation multiple-modified-transitional-1");
+ }
+
if (verbose) {
out(fmt::format("Making KDMs valid from {} to {}", boost::posix_time::to_simple_string(valid_from.get()), boost::posix_time::to_simple_string(valid_to.get())));
}