Make --noexport and --export-only exclusive wip
authortimothy.murphy@nokia.com
Sun, 29 Nov 2009 16:09:02 +0000
branchwip
changeset 21 a695dd5e4c37
parent 15 9d01f1c36469
child 22 072f869b0bc5
Make --noexport and --export-only exclusive
sbsv2/raptor/python/raptor.py
--- a/sbsv2/raptor/python/raptor.py	Mon Nov 23 21:12:30 2009 +0000
+++ b/sbsv2/raptor/python/raptor.py	Sun Nov 29 16:09:02 2009 +0000
@@ -575,10 +575,16 @@
 
 	def SetExportOnly(self, TrueOrFalse):
 		self.doExportOnly = TrueOrFalse
+		if not self.doExport:
+			self.Error("The --noexport and --export-only options are incompatible - won't to do anything useful")
+			return False
 		return True
 
 	def SetNoExport(self, TrueOrFalse):
 		self.doExport = not TrueOrFalse
+		if self.doExportOnly:
+			self.Error("The --noexport and --export-only options are incompatible - won't to do anything useful")
+			return False
 		return True
 
 	def SetNoBuild(self, TrueOrFalse):