blob: 1c501393a4be77ea557989c92127a30d70ad327c [file] [log] [blame]
Jackeagle5b8a0da2019-04-25 06:24:48 +02001From 0582b5385471ec08573918bf8c3de715d0bd44e1 Mon Sep 17 00:00:00 2001
Jon West013ef582018-08-21 20:45:26 -04002From: Pierre-Hugues Husson <phh@phh.me>
3Date: Sun, 19 Aug 2018 10:51:06 +0200
Jackeagle5b8a0da2019-04-25 06:24:48 +02004Subject: [PATCH 15/28] idmap: Don't silently ignore RROs with same priority
Jon West013ef582018-08-21 20:45:26 -04005
6Change-Id: I64a6899f1b30e0cd9e9a872b7ca83d831f038cbe
7---
8 cmds/idmap/scan.cpp | 2 ++
9 1 file changed, 2 insertions(+)
10
11diff --git a/cmds/idmap/scan.cpp b/cmds/idmap/scan.cpp
Jackeagled3ba2282018-11-17 20:49:22 -070012index 0acff23d031..d1dde52732f 100644
Jon West013ef582018-08-21 20:45:26 -040013--- a/cmds/idmap/scan.cpp
14+++ b/cmds/idmap/scan.cpp
15@@ -29,6 +29,8 @@ namespace {
16
17 bool operator<(Overlay const& rhs) const
18 {
19+ if(rhs.priority == priority)
20+ return rhs.apk_path > apk_path;
21 return rhs.priority > priority;
22 }
23
24--
Jackeagle5b8a0da2019-04-25 06:24:48 +0200252.21.0
Jon West013ef582018-08-21 20:45:26 -040026