blob: 190c4c2943a3ee8cdac7f1c501e646a6e4fd40a2 [file] [log] [blame]
Jackeagle0cc335a2018-10-19 00:06:49 -04001From 01ca7e2062fe3986d7a978c04b6ad7b63d8adb23 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
Jackeagle0cc335a2018-10-19 00:06:49 -04004Subject: [PATCH 17/26] 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
12index 0acff23..d1dde52 100644
13--- 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--
252.7.4
26