[CalendarServer-changes] [11850] CalendarServer/trunk/calendarserver/tools/upgrade.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:22:00 PDT 2014
Revision: 11850
http://trac.calendarserver.org//changeset/11850
Author: sagen at apple.com
Date: 2013-10-30 13:29:31 -0700 (Wed, 30 Oct 2013)
Log Message:
-----------
If -s is passed to calendarserver_upgrade and it needs upgrading, say so.
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/upgrade.py
Modified: CalendarServer/trunk/calendarserver/tools/upgrade.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/upgrade.py 2013-10-30 17:31:43 UTC (rev 11849)
+++ CalendarServer/trunk/calendarserver/tools/upgrade.py 2013-10-30 20:29:31 UTC (rev 11850)
@@ -143,7 +143,10 @@
Immediately stop. The upgrade will have been run before this.
"""
if self.store is None:
- self.output.write("Upgrade failed.\n")
+ if self.options["status"]:
+ self.output.write("Upgrade needed.\n")
+ else:
+ self.output.write("Upgrade failed.\n")
else:
# If we get this far the database is OK
if self.options["status"]:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/36bf001f/attachment.html>
More information about the calendarserver-changes
mailing list