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