[viewvc-dev] [PATCH] viewvc-install bug
Alexey Neyman <[email protected]> Fri, 30 Sep 2011 11:59:13 -0700
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Message-ID | <201109301159.13876.stilor__34104.681274812$1317409165$gmane$org@att.net> |
Hi, Currently, viewvc-install throws a traceback if Enter is pressed when user is asked a "overwrite/do not overwrite/view" question (empty response, so temp[0] throws RangeError). This patch makes viewvc-install persist in asking the same question until it receives a definitive response. Regards, Alexey. ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4251&dsMessageId=2848335 To unsubscribe from this discussion, e-mail: [[email protected]].
viewvc-install.diff
(text/x-patch, 573 B)
Index: viewvc-install
===================================================================
--- viewvc-install (revision 2598)
+++ viewvc-install (working copy)
@@ -207,6 +207,8 @@
temp = raw_input("Do you want to [O]verwrite, [D]o "
"not overwrite, or [V]iew "
"differences? ")
+ if len(temp) == 0:
+ continue
temp = temp[0].lower()
if temp == "v" and ext not in BINARY_FILE_EXTS:
print """