[Midnightbsd-cvs] src [7685] trunk/lib/libmport/bundle_read_install_pkg.c: change the order we fetch things
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Aug 7 16:22:23 EDT 2016
Revision: 7685
http://svnweb.midnightbsd.org/src/?rev=7685
Author: laffer1
Date: 2016-08-07 16:22:22 -0400 (Sun, 07 Aug 2016)
Log Message:
-----------
change the order we fetch things
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 2016-08-07 20:19:49 UTC (rev 7684)
+++ trunk/lib/libmport/bundle_read_install_pkg.c 2016-08-07 20:22:22 UTC (rev 7685)
@@ -363,6 +363,9 @@
mport_call_progress_init_cb(mport, "Installing %s-%s", pkg->name, pkg->version);
+ if (mport_bundle_read_get_assetlist(mport, pkg, &alist, ACTUALINSTALL) != MPORT_OK)
+ goto ERROR;
+
if (create_package_row(mport, pkg) != MPORT_OK)
goto ERROR;
@@ -378,9 +381,6 @@
MPORT_OK)
goto ERROR;
- if (mport_bundle_read_get_assetlist(mport, pkg, &alist, ACTUALINSTALL) != MPORT_OK)
- goto ERROR;
-
(void) strlcpy(cwd, pkg->prefix, sizeof(cwd));
if (mport_chdir(mport, cwd) != MPORT_OK)
More information about the Midnightbsd-cvs
mailing list