On 18.5.2011 19:59, David Anderson wrote:
This is probably some kind of PHP stdin buffering thing or problem with
new lines. Applying following patch fixes this issue for me.
--- a/tools/update_versions
+++ b/tools/update_versions
@@ -170,8 +170,7 @@ function confirm_sig_gen($name) {
Continue (y/n)? ";
- $stdin = fopen("php://stdin", "r");
- $x = trim(fgets($stdin));
+ $x = trim(fgets(STDIN));
if ($x != "y") {
exit;
}
@@ -308,8 +307,7 @@ function confirm($fds) {
echo "\n";
}
echo " Do you want to add this application version (y/n)? ";
- $stdin = fopen("php://stdin", "r");
- $x = trim(fgets($stdin));
+ $x = trim(fgets(STDIN));
return ($x == "y");
}
> I can't reproduce 2); if I answer "n" or "no", it goes to
> the next one and prompts for y/n.
..
>> 2) It seems if I answer no to a version creation (I had four new
>> versions), rest
>> of the run goes nuts and flies by. Next question gets answered (n or
>> something
>> to that effect) and rest of the versions are flagged as an error (says
>> version.xml lists some files that are not found, which is incorrect).
>> Can be
>> forced through by rerunning the script.
--
Teemu Mannermaa
System Specialist
"Anything is possible but probabilities vary."
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.