db: fix bug that made inverted new installs and upgrades

We upgrade when we have an oldpkg.
cute-signatures
Natanael Copa 2009-05-18 14:22:43 +00:00
parent 32064c35cf
commit 250dee4101
1 changed files with 1 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ int apk_db_install_pkg(struct apk_database *db,
/* Install the new stuff */
if (!(newpkg->name->flags & APK_NAME_VIRTUAL)) {
r = apk_db_unpack_pkg(db, newpkg, (oldpkg == NULL), csum,
r = apk_db_unpack_pkg(db, newpkg, (oldpkg != NULL), csum,
cb, cb_ctx);
if (r != 0)
return r;