projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a5296e2
)
UpdateDatabase.php
author
Alan Knowles
<alan@roojs.com>
Thu, 14 Jul 2016 05:14:05 +0000
(13:14 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 14 Jul 2016 05:14:05 +0000
(13:14 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
922be24
..
3472dd1
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-402,12
+402,14
@@
class Pman_Core_UpdateDatabase extends Pman
{
// send the current file part to the browser
$line = trim(fgets($fp, 1024));
{
// send the current file part to the browser
$line = trim(fgets($fp, 1024));
- echo '->>> ' . $line . " <<<---\n";
- echo "--";
+ $matches = array();
+ if (!preg_match('/^ERROR\s+([0-9]+)/', $line, $matches)) {
+ echo "OK - {$line}\n"; flush();
+ continue;
+ }
+ print_r($matches);exit;
- // flush the content to the browser
- flush();
}
}