[darwinbuild-changes] [778] branches/PR-7748469/darwinup/main.cpp

source_changes at macosforge.org source_changes at macosforge.org
Sat Mar 13 18:17:51 PST 2010


Revision: 778
          http://trac.macosforge.org/projects/darwinbuild/changeset/778
Author:   wsiegrist at apple.com
Date:     2010-03-13 18:17:48 -0800 (Sat, 13 Mar 2010)
Log Message:
-----------
Dry run implies not updating dyld cache.

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

Modified: branches/PR-7748469/darwinup/main.cpp
===================================================================
--- branches/PR-7748469/darwinup/main.cpp	2010-03-13 21:34:13 UTC (rev 777)
+++ branches/PR-7748469/darwinup/main.cpp	2010-03-14 02:17:48 UTC (rev 778)
@@ -104,12 +104,11 @@
 				update_dyld = false;
 				break;
 		case 'f':
-				IF_DEBUG("forcing operations\n");
 				force = 1;
 				break;
 		case 'n':
-				IF_DEBUG("dry run\n");
 				dryrun = 1;
+				update_dyld = false;
 				break;
 		case 'p':
 				if (optarg[0] != '/') {
@@ -138,8 +137,14 @@
 	
 	int res = 0;
 
+	if (dryrun) IF_DEBUG("option: dry run\n");
+	if (force)  IF_DEBUG("option: forcing operations\n");
+	if (!update_dyld) IF_DEBUG("option: not updating dyld cache\n");
+	
 	if (!path) {
 		asprintf(&path, "/");
+	} else {
+		IF_DEBUG("option: path is %s\n", path);
 	}
 
 	Depot* depot = new Depot(path);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20100313/b61bcd62/attachment-0001.html>


More information about the darwinbuild-changes mailing list