From d1fffb9a03a3a5203a2beb98a249c00f47e05ae3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 1 Apr 2013 13:45:57 +0000 Subject: fix package count when a package has a %pretrans scriptlet (spot by Colin on installing a minimal system with urpmi) callback_open got called one too much (it got called twice for first package which is actually filesystem), thus we bump the index one too much. the call chain is: rpmtsRun() -> runTransScripts() -> rpmteProcess() which says: /* Dont bother opening for elements without pre/posttrans scripts */ But since we now have package ('filesystem') with %pretrans due to /usr migration, it goes further and calls rpmteOpen()->rpmteFDHeader() which notifys us about a package opening in order to get its file descriptor. --- NEWS | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 91128987..f2aebaad 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ - library: o display exceptions that happened while downloading (mga#9529) +- urpmi: + o fix package count when a package has a %pretrans scriptlet Version 7.23 - 21 March 2013, by Thierry Vignaud -- cgit v1.2.1