[Midnightbsd-cvs] src [7384] trunk/lib/libmport/bundle_read_install_pkg.c: Don' t fetch the checksum for the pre steps.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Nov 29 12:26:54 EST 2015
Revision: 7384
http://svnweb.midnightbsd.org/src/?rev=7384
Author: laffer1
Date: 2015-11-29 12:26:53 -0500 (Sun, 29 Nov 2015)
Log Message:
-----------
Don't fetch the checksum for the pre steps. We're not using it for anything.
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 2015-11-29 15:51:37 UTC (rev 7383)
+++ trunk/lib/libmport/bundle_read_install_pkg.c 2015-11-29 17:26:53 UTC (rev 7384)
@@ -50,7 +50,9 @@
static int run_mtree(mportInstance *, mportBundleRead *, mportPackageMeta *);
static int display_pkg_msg(mportInstance *, mportBundleRead *, mportPackageMeta *);
-
+/**
+ * This is a wrapper for all bund read install operations
+ */
int
mport_bundle_read_install_pkg(mportInstance *mport, mportBundleRead *bundle, mportPackageMeta *pkg)
{
@@ -81,7 +83,7 @@
sqlite3_stmt *assets = NULL;
sqlite3 *db;
mportAssetListEntryType type;
- const char *data, *checksum;
+ const char *data;
uid_t owner = 0; /* root */
gid_t group = 0; /* wheel */
char *mode = NULL;
@@ -97,7 +99,7 @@
RETURN_CURRENT_ERROR;
/* Process @preexec steps */
- if (mport_db_prepare(db, &assets, "SELECT type,data,checksum FROM stub.assets WHERE pkg=%Q", pkg->name) != MPORT_OK)
+ if (mport_db_prepare(db, &assets, "SELECT type, data FROM stub.assets WHERE pkg=%Q", pkg->name) != MPORT_OK)
goto ERROR;
(void) strlcpy(cwd, pkg->prefix, sizeof(cwd));
@@ -118,7 +120,6 @@
type = (mportAssetListEntryType) sqlite3_column_int(assets, 0);
data = sqlite3_column_text(assets, 1);
- checksum = sqlite3_column_text(assets, 2);
switch (type) {
case ASSET_CWD:
More information about the Midnightbsd-cvs
mailing list