Merge "init: Skip interface duplicates if service is an override" am: 8c7cbf01a9
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2009975 Change-Id: I3c32b073ce86e4f98593a7e27181fd9df83009c5
This commit is contained in:
commit
d20ed1dfc8
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ Result<void> ServiceParser::ParseInterface(std::vector<std::string>&& args) {
|
|||
const std::string fullname = interface_name + "/" + instance_name;
|
||||
|
||||
for (const auto& svc : *service_list_) {
|
||||
if (svc->interfaces().count(fullname) > 0) {
|
||||
if (svc->interfaces().count(fullname) > 0 && !service_->is_override()) {
|
||||
return Error() << "Interface '" << fullname << "' redefined in " << service_->name()
|
||||
<< " but is already defined by " << svc->name();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue