Commit 250dee41 authored by Natanael Copa's avatar Natanael Copa
Browse files

db: fix bug that made inverted new installs and upgrades

We upgrade when we have an oldpkg.
parent 32064c35
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment