blob: ffa27e642ad18f96c0acb02973955fec339031c4 [file] [log] [blame]
Jackeagled3ba2282018-11-17 20:49:22 -07001From 918aacb06ef25d3c6ede826ef65916103b9c5584 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
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--
Jackeagled3ba2282018-11-17 20:49:22 -0700252.17.1
Jon West013ef582018-08-21 20:45:26 -040026