Fix querying of architecture for entries without subarch string
authorTimothy Gu <timothygu99@gmail.com>
Tue, 10 Jun 2014 17:56:06 +0000 (19:56 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Jun 2014 17:56:13 +0000 (19:56 +0200)
This fixes, for example, querying aarch64.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
index.cgi

index 5de0efd..18548a6 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -46,14 +46,13 @@ for my $slot (@slots) {
     next if time - parse_date($$rep{date}) > $hidden_age;
 
     my $not_matched = 0;
-
+    $$rep{subarch} = $$rep{arch} if not $$rep{subarch};
     for my $this_query (@queries) {
         my ($type, $text) = split(/:/, $this_query, 2);
         $not_matched = 1 if ($$rep{$type} ne $text);
     }
     next if $not_matched;
 
-    $$rep{subarch} = $$rep{arch} if not $$rep{subarch};
     push @reps, $rep;
     if ($$rep{npass} == $$rep{ntests} and !$$rep{status}) {
         $allpass++;