[pacman-dev] CVS update of pacman-lib/lib/libalpm (package.c)
Date: Tuesday, February 6, 2007 @ 12:41:37 Author: aaron Path: /home/cvs-pacman/pacman-lib/lib/libalpm Modified: package.c (1.58 -> 1.59) Copy-pasta errors. 8) -----------+ package.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Index: pacman-lib/lib/libalpm/package.c diff -u pacman-lib/lib/libalpm/package.c:1.58 pacman-lib/lib/libalpm/package.c:1.59 --- pacman-lib/lib/libalpm/package.c:1.58 Tue Feb 6 12:39:32 2007 +++ pacman-lib/lib/libalpm/package.c Tue Feb 6 12:41:36 2007 @@ -125,7 +125,7 @@ /* Is pkgB an upgrade for pkgA ? */ int alpm_pkg_compare_versions(pmpkg_t *pkgA, pmpkg_t *pkgB) { - if(spkg->force) { + if(pkgB->force) { /* skip the version compare call if this is a 'force' package */ return(1); } @@ -133,21 +133,21 @@ /* compare versions and see if we need to upgrade */ int cmp = alpm_versioncmp(pkgA->version, pkgB->version); - if(cmp > 0 && !spkg->force) { + if(cmp > 0) { /* local version is newer */ - pmdb_t *db = spkg->data; + pmdb_t *db = pkgB->data; _alpm_log(PM_LOG_WARNING, _("%s: local (%s) is newer than %s (%s)"), - local->name, local->version, db->treename, spkg->version); + pkgA->name, pkgA->version, db->treename, pkgB->version); cmp = 0; - } else if(alpm_list_find_str(handle->ignorepkg, spkg->name)) { + } else if(alpm_list_find_str(handle->ignorepkg, pkgB->name)) { /* package should be ignored (IgnorePkg) */ _alpm_log(PM_LOG_WARNING, _("%s-%s: ignoring package upgrade (%s)"), - local->name, local->version, spkg->version); + pkgA->name, pkgA->version, pkgB->version); cmp = 0; - } else if(_alpm_pkg_istoonew(spkg)) { + } else if(_alpm_pkg_istoonew(pkgB)) { /* package too new (UpgradeDelay) */ _alpm_log(PM_LOG_DEBUG, _("%s-%s: delaying upgrade of package (%s)"), - local->name, local->version, spkg->version); + pkgA->name, pkgA->version, pkgB->version); cmp = 0; }
participants (1)
-
Aaron Griffin