[CalendarServer-changes] [5186] CalendarServer/trunk/support/patchapply
source_changes at macosforge.org
source_changes at macosforge.org
Tue Feb 23 06:43:56 PST 2010
Revision: 5186
http://trac.macosforge.org/projects/calendarserver/changeset/5186
Author: cdaboo at apple.com
Date: 2010-02-23 06:43:53 -0800 (Tue, 23 Feb 2010)
Log Message:
-----------
Sometimes there are no patches for a particular project.
Modified Paths:
--------------
CalendarServer/trunk/support/patchapply
Modified: CalendarServer/trunk/support/patchapply
===================================================================
--- CalendarServer/trunk/support/patchapply 2010-02-23 06:48:38 UTC (rev 5185)
+++ CalendarServer/trunk/support/patchapply 2010-02-23 14:43:53 UTC (rev 5186)
@@ -42,10 +42,11 @@
# Iterate over each patch file in the patches directory
path = os.path.join(libpatches, project)
- for file in os.listdir(path):
- fpath = os.path.join(path, file)
- if os.path.isfile(fpath) and fpath.endswith(".patch"):
- applypatch(project, fpath)
+ if os.path.exists(path):
+ for file in os.listdir(path):
+ fpath = os.path.join(path, file)
+ if os.path.isfile(fpath) and fpath.endswith(".patch"):
+ applypatch(project, fpath)
if __name__ == "__main__":
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100223/f2935444/attachment.html>
More information about the calendarserver-changes
mailing list