[Midnightbsd-cvs] src [9671] stable/0.8/usr.sbin/mport/mport.c: MFC: support installing multiple packages from install
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Nov 23 12:21:33 EST 2017
Revision: 9671
http://svnweb.midnightbsd.org/src/?rev=9671
Author: laffer1
Date: 2017-11-23 12:21:33 -0500 (Thu, 23 Nov 2017)
Log Message:
-----------
MFC: support installing multiple packages from install
Modified Paths:
--------------
stable/0.8/usr.sbin/mport/mport.c
Modified: stable/0.8/usr.sbin/mport/mport.c
===================================================================
--- stable/0.8/usr.sbin/mport/mport.c 2017-11-23 17:19:31 UTC (rev 9670)
+++ stable/0.8/usr.sbin/mport/mport.c 2017-11-23 17:21:33 UTC (rev 9671)
@@ -91,7 +91,11 @@
usage();
}
loadIndex(mport);
- resultCode = install(mport, argv[2]);
+ for (i = 2; i < argc; i++) {
+ tempResultCode = install(mport, argv[i]);
+ if (tempResultCode != 0)
+ resultCode = tempResultCode;
+ }
});
} else if (!strcmp(argv[1], "delete")) {
dispatch_group_async(grp, q, ^{
More information about the Midnightbsd-cvs
mailing list