]> git.donarmstrong.com Git - wannabuild.git/blobdiff - bin/wanna-build
If we only ask for info of 1 record, we might be updating it, lock the record.
[wannabuild.git] / 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;
 }