[Midnightbsd-cvs] src [12052] trunk/lib/libmport/bundle_read_install_pkg.c: add missing fields to pkg insert

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Sep 18 09:05:22 EDT 2018


Revision: 12052
          http://svnweb.midnightbsd.org/src/?rev=12052
Author:   laffer1
Date:     2018-09-18 09:05:21 -0400 (Tue, 18 Sep 2018)
Log Message:
-----------
add missing fields to pkg insert

Modified Paths:
--------------
    trunk/lib/libmport/bundle_read_install_pkg.c

Modified: trunk/lib/libmport/bundle_read_install_pkg.c
===================================================================
--- trunk/lib/libmport/bundle_read_install_pkg.c	2018-09-16 17:52:13 UTC (rev 12051)
+++ trunk/lib/libmport/bundle_read_install_pkg.c	2018-09-18 13:05:21 UTC (rev 12052)
@@ -179,9 +179,9 @@
 	/* Insert the package meta row into the packages table (We use pack here because things might have been twiddled) */
 	/* Note that this will be marked as dirty by default */
 	if (mport_db_do(mport->db,
-	                "INSERT INTO packages (pkg, version, origin, prefix, lang, options, comment, os_release, cpe, locked) VALUES (%Q,%Q,%Q,%Q,%Q,%Q,%Q,%Q,%Q,0)",
+	                "INSERT INTO packages (pkg, version, origin, prefix, lang, options, comment, os_release, cpe, locked, deprecated, expiration_date, no_provide_shlib, flavor) VALUES (%Q,%Q,%Q,%Q,%Q,%Q,%Q,%Q,%Q,0,%Q,%Q,%Q,%Q)",
 	                pkg->name, pkg->version, pkg->origin, pkg->prefix, pkg->lang, pkg->options, pkg->comment,
-	                pkg->os_release, pkg->cpe) != MPORT_OK)
+	                pkg->os_release, pkg->cpe, pkg->deprecated, pkg->expiration_date, pkg->no_provide_shlib, pkg->flavor) != MPORT_OK)
 		RETURN_CURRENT_ERROR;
 
 	return MPORT_OK;



More information about the Midnightbsd-cvs mailing list