teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame 0049-Pass-proper-file-index-when-recording-generated-depe.patch

Igor Gnatenko 082d5d
From d6a1e94f18d2f73e7b03025d891aa7e407cb169a Mon Sep 17 00:00:00 2001
Igor Gnatenko d7aa14
From: Florian Festi <ffesti@redhat.com>
Igor Gnatenko d7aa14
Date: Wed, 31 May 2017 10:42:03 +0200
Mark Wielaard 284dc3
Subject: [PATCH] Pass proper file index when recording generated dependencies
Igor Gnatenko d7aa14
Igor Gnatenko d7aa14
Resolves regression introduced with 8f509d6
Igor Gnatenko d7aa14
Fixes #224
Igor Gnatenko d7aa14
Igor Gnatenko d7aa14
(cherry picked from commit dab75e7f26a08cc6798e4df177adb2dd8d40035c)
Igor Gnatenko d7aa14
---
Igor Gnatenko d7aa14
 build/rpmfc.c | 2 +-
Igor Gnatenko d7aa14
 1 file changed, 1 insertion(+), 1 deletion(-)
Igor Gnatenko d7aa14
Igor Gnatenko d7aa14
diff --git a/build/rpmfc.c b/build/rpmfc.c
Igor Gnatenko d7aa14
index 7fa8227d0..72f29ddf5 100644
Igor Gnatenko d7aa14
--- a/build/rpmfc.c
Igor Gnatenko d7aa14
+++ b/build/rpmfc.c
Igor Gnatenko d7aa14
@@ -511,7 +511,7 @@ static int rpmfcHelper(rpmfc fc, int ix,
Igor Gnatenko d7aa14
     data.exclude = exclude;
Igor Gnatenko d7aa14
 
Igor Gnatenko d7aa14
     for (int i = 0; i < pac; i++) {
Igor Gnatenko d7aa14
-	if (parseRCPOT(NULL, fc->pkg, pav[i], tagN, 0, dsContext, addReqProvFc, &data))
Igor Gnatenko d7aa14
+	if (parseRCPOT(NULL, fc->pkg, pav[i], tagN, ix, dsContext, addReqProvFc, &data))
Igor Gnatenko d7aa14
 	    rc++;
Igor Gnatenko d7aa14
     }
Igor Gnatenko d7aa14