config: Detect module-set options used in module and fail out.

BUG:315170
FIXED-IN:1.16
wilder
Michael Pyne 13 years ago
parent 700794bd56
commit dc35a9ae2b
  1. 5
      kdesrc-build

@ -604,6 +604,11 @@ EOF
$value->{$repo} = $url;
}
# Read ~~ as "is in this list:"
elsif ($option ~~ [qw(git-repository-base use-modules ignore-modules)]) {
error (" r[b[*] module b[$module] (near line $.) should be declared as module-set to use b[$option]");
die make_exception('Config', "Option $option can only be used in module-set");
}
$module->setOption($option, $value);
}

Loading…
Cancel
Save