]> git.donarmstrong.com Git - wannabuild.git/commitdiff
If we only ask for info of 1 record, we might be updating it, lock the record.
authorKurt Roeckx <kurt@roeckx.be>
Mon, 14 Sep 2009 17:19:47 +0000 (17:19 +0000)
committerKurt Roeckx <kurt@roeckx.be>
Mon, 14 Sep 2009 17:19:47 +0000 (17:19 +0000)
bin/wanna-build

index ec0ea582b01de923c38b8f822263d5d7424f827f..785effb6be45ecc5400ec37c49baf410859e63a5 100755 (executable)
@@ -2421,7 +2421,8 @@ sub user_table_name {
 sub get_source_info {
        my $name = shift;
        my $pkg = $dbh->selectrow_hashref('SELECT * FROM ' . 
-               table_name() . ' WHERE package = ? AND distribution = ?',
+               table_name() . ' WHERE package = ? AND distribution = ?' .
+               'FOR UPDATE',
                undef, $name, $distribution);
        return $pkg;
 }