Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=3d395e0d7a13d913ca8521174733a7aedcc35ada

commit 3d395e0d7a13d913ca8521174733a7aedcc35ada
Author: Michel Hermier <[email protected]>
Date:   Fri May 16 04:22:16 2014 +0200

libpacman: Move local_pkg files preload out earlier, to ease furure 
vectorisation.

diff --git a/lib/libpacman/trans.cpp b/lib/libpacman/trans.cpp
index 5a197d9..f533d36 100644
--- a/lib/libpacman/trans.cpp
+++ b/lib/libpacman/trans.cpp
@@ -1823,6 +1823,11 @@ int __pmtrans_t::commit(pmtranstype_t type, pmlist_t 
**data)
}
if(pkg_local) {
pkg_local->acquire();
+                       /* we'll need to save some record for backup checks 
later */
+                       if(!(pkg_local->flags & INFRQ_FILES)) {
+                               _pacman_log(PM_LOG_DEBUG, _("loading FILES info 
for '%s'"), pkg_local->name());
+                               pkg_local->read(INFRQ_FILES);
+                       }
}

if(pkg_new != NULL) {
@@ -1838,12 +1843,6 @@ int __pmtrans_t::commit(pmtranstype_t type, pmlist_t 
**data)
if(type == PM_TRANS_TYPE_UPGRADE)
{
_pacman_log(PM_LOG_FLOW1, _("upgrading package %s-%s"), pkg_new->name(), 
pkg_new->version());
-
-                               /* we'll need to save some record for backup 
checks later */
-                                       if(!(pkg_local->flags & INFRQ_FILES)) {
-                                               _pacman_log(PM_LOG_DEBUG, 
_("loading FILES info for '%s'"), pkg_local->name());
-                                               pkg_local->read(INFRQ_FILES);
-                                       }
} else {
_pacman_log(PM_LOG_FLOW1, _("adding package %s-%s"), pkg_new->name(), 
pkg_new->version());
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to