4c9460
From 2f31395dcd49459c775caaadefa0513181cd12ff Mon Sep 17 00:00:00 2001
4c9460
From: Lubos Kardos <lkardos@localhost.localdomain>
4c9460
Date: Wed, 17 Dec 2014 12:53:30 +0100
4c9460
Subject: [PATCH] Fix color skipping of multiple files with the same content.
4c9460
4c9460
- If we process some file and we find another file with the same path
4c9460
  and the same content and this other file is skipped for color then
4c9460
  the currently being processed file has to be skipped for color too.
4c9460
  (RhBug:1170124)
4c9460
---
4c9460
 lib/transaction.c | 3 +++
4c9460
 1 file changed, 3 insertions(+)
4c9460
4c9460
diff --git a/lib/transaction.c b/lib/transaction.c
4c9460
index 736f64d..2d1432e 100644
4c9460
--- a/lib/transaction.c
4c9460
+++ b/lib/transaction.c
4c9460
@@ -587,6 +587,9 @@ assert(otherFi != NULL);
4c9460
 		    if (!(oflags & RPMFILE_GHOST)) {
4c9460
 			rpmfsSetAction(fs, i, FA_SKIP);
4c9460
 		    }
4c9460
+		/* if the other file is color skipped then skip this file too */
4c9460
+		} else if (oaction == FA_SKIPCOLOR) {
4c9460
+		    rpmfsSetAction(fs, i, FA_SKIPCOLOR);
4c9460
 		}
4c9460
 	    }
4c9460
 
4c9460
-- 
4c9460
2.1.0
4c9460