Add the 1.5 branch to populatedb. Also convert the branch detection to use real regexps instead of LIKE for matches. This work will continue with real regexps used for the other detected fields shortly.

This commit is contained in:
zach%zachlipton.com 2005-08-19 22:37:11 +00:00
parent 160a72c236
commit 4fd2c7e140
2 changed files with 9 additions and 6 deletions

View File

@ -39,14 +39,14 @@ Litmus::DB::Platform->set_sql(detectplatform => qq{
SELECT __ESSENTIAL__
FROM __TABLE__
WHERE
? LIKE detect_regexp AND
? REGEXP detect_regexp AND
product LIKE ?
});
Litmus::DB::Branch->set_sql(detectbranch => qq{
SELECT __ESSENTIAL__
FROM __TABLE__
WHERE
? LIKE detect_regexp AND
? REGEXP detect_regexp AND
product LIKE ?
});

View File

@ -65,18 +65,21 @@ $products{"thunderbird"} = Litmus::DB::Product->find_or_create({name => "Thunder
# branches
Litmus::DB::Branch->find_or_create({product => $products{"firefox"},
name => "Trunk",
detect_regexp => "%Firefox/1.0+%"});
detect_regexp => "Firefox/1\\.6a1"});
Litmus::DB::Branch->find_or_create({product => $products{"firefox"},
name => "1.5 Branch",
detect_regexp => "Firefox/1\.(0\\+|4)"});
Litmus::DB::Branch->find_or_create({product => $products{"firefox"},
name => "1.0.x Branch",
detect_regexp => "%Firefox/1.0.%"});
detect_regexp => "Firefox/1\\.0\\."});
Litmus::DB::Branch->find_or_create({product => $products{"seamonkey"},
name => "Trunk",
detect_regexp => "%"});
detect_regexp => "."});
Litmus::DB::Branch->find_or_create({product => $products{"thunderbird"},
name => "Trunk",
detect_regexp => "%"});
detect_regexp => "."});
Litmus::DB::Branch->find_or_create({product => $products{"thunderbird"},
name => "1.0.x Branch"},
detect_regexp => "");