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