1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

Put comments on their own line

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-04-20 19:00:59 -05:00
parent 4c31bc6e3f
commit a6c05458d4

View File

@ -117,7 +117,8 @@ int SYMEXPORT alpm_sync_sysupgrade(int enable_downgrade)
pmdb_t *sdb = j->data; pmdb_t *sdb = j->data;
/* Check sdb */ /* Check sdb */
pmpkg_t *spkg = _alpm_db_get_pkgfromcache(sdb, lpkg->name); pmpkg_t *spkg = _alpm_db_get_pkgfromcache(sdb, lpkg->name);
if(spkg) { /* 1. literal was found in sdb */ if(spkg) {
/* 1. literal was found in sdb */
int cmp = _alpm_pkg_compare_versions(spkg, lpkg); int cmp = _alpm_pkg_compare_versions(spkg, lpkg);
if(cmp > 0) { if(cmp > 0) {
_alpm_log(PM_LOG_DEBUG, "new version of '%s' found (%s => %s)\n", _alpm_log(PM_LOG_DEBUG, "new version of '%s' found (%s => %s)\n",
@ -147,8 +148,10 @@ int SYMEXPORT alpm_sync_sysupgrade(int enable_downgrade)
lpkg->name, lpkg->version, sdb->treename, spkg->version); lpkg->name, lpkg->version, sdb->treename, spkg->version);
} }
} }
break; /* jump to next local package */ /* jump to next local package */
} else { /* 2. search for replacers in sdb */ break;
} else {
/* 2. search for replacers in sdb */
int found = 0; int found = 0;
for(k = _alpm_db_get_pkgcache(sdb); k; k = k->next) { for(k = _alpm_db_get_pkgcache(sdb); k; k = k->next) {
spkg = k->data; spkg = k->data;
@ -184,7 +187,8 @@ int SYMEXPORT alpm_sync_sysupgrade(int enable_downgrade)
if(alpm_pkg_get_reason(lpkg) == PM_PKG_REASON_EXPLICIT) { if(alpm_pkg_get_reason(lpkg) == PM_PKG_REASON_EXPLICIT) {
tpkg->reason = PM_PKG_REASON_EXPLICIT; tpkg->reason = PM_PKG_REASON_EXPLICIT;
} }
} else { /* add spkg to the target list */ } else {
/* add spkg to the target list */
/* copy over reason */ /* copy over reason */
spkg->reason = alpm_pkg_get_reason(lpkg); spkg->reason = alpm_pkg_get_reason(lpkg);
spkg->removes = alpm_list_add(NULL, lpkg); spkg->removes = alpm_list_add(NULL, lpkg);