[darwinbuild-changes] [796] branches/PR-7798586/darwinup/main.cpp

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 27 19:24:38 PDT 2010


Revision: 796
          http://trac.macosforge.org/projects/darwinbuild/changeset/796
Author:   wsiegrist at apple.com
Date:     2010-03-27 19:24:35 -0700 (Sat, 27 Mar 2010)
Log Message:
-----------
Only update dyld cache when needed

Modified Paths:
--------------
    branches/PR-7798586/darwinup/main.cpp

Modified: branches/PR-7798586/darwinup/main.cpp
===================================================================
--- branches/PR-7798586/darwinup/main.cpp	2010-03-28 02:06:46 UTC (rev 795)
+++ branches/PR-7798586/darwinup/main.cpp	2010-03-28 02:24:35 UTC (rev 796)
@@ -151,6 +151,7 @@
 		
 	// list handles args optional and in special ways
 	if (strcmp(argv[0], "list") == 0) {
+		update_dyld = false;
 		res = depot->initialize(false);
 		if (res == -2) {
 			// we are not asking to write, 
@@ -169,6 +170,7 @@
 	} else if (argc == 1) {
 		// other commands which take no arguments
 		if (strcmp(argv[0], "dump") == 0) {
+			update_dyld = false;
 			if (depot->initialize(false)) exit(11);
 			depot->dump();
 		} else {
@@ -193,12 +195,14 @@
 				// uninstall old archive
 				if (res == 0) res = depot->uninstall(old);
 			} else if (strcmp(argv[0], "files") == 0) {
+				update_dyld = false;
 				if (i==1 && depot->initialize(false)) exit(12);
 				res = depot->process_archive(argv[0], argv[i]);
 			} else if (strcmp(argv[0], "uninstall") == 0) {
 				if (i==1 && depot->initialize(true)) exit(15);
 				res = depot->process_archive(argv[0], argv[i]);
 			} else if (strcmp(argv[0], "verify") == 0) {
+				update_dyld = false;
 				if (i==1 && depot->initialize(true)) exit(16);
 				res = depot->process_archive(argv[0], argv[i]);
 			} else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20100327/3c70cbb8/attachment.html>


More information about the darwinbuild-changes mailing list