From 6734a4608628c7d124cdd89bf7be5561361fd176 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 12 Jan 2011 12:40:54 +0000 Subject: Revert some changes which were part of another unfinished change --- index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 762e76c..597423e 100644 --- a/index.php +++ b/index.php @@ -48,7 +48,7 @@ foreach ($matches as $val) { $status = $val[1]; $data = $val[10]; - $pkgs[$key]["status"][$status] = $data; + $pkgs[$key]["status"][$status] = 1; $ext = $val[11]; if ($ext == ".src.rpm.info") { preg_match("!^(?:@\d+:)?(.*)!", $data, $name); @@ -58,9 +58,8 @@ foreach ($matches as $val) { } else if ($ext == ".youri") { $pkgs[$key]["status"]["youri"] = 1; } else if ($ext == ".lock") { - preg_match("/(.*)\..*\.(.*)\.\d+\.\d+/", "(\1@\2)", $data); // parse build bot from $data - $pkgs[$key]["status"]["build"] = $data; + $pkgs[$key]["status"]["build"] = 1; } } // sort by key in reverse order to have more recent pkgs first -- cgit v1.2.1