aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2011-04-08 22:18:42 +0000
committerPascal Terjan <pterjan@mageia.org>2011-04-08 22:18:42 +0000
commit727acfa786b007e48bb81897ddc49540ad6dba82 (patch)
tree3a9c0c3d3656201a05714a5681c170423046a9fe
parenta68211dec0d8eba69e7dea6b07d069dc9adc655b (diff)
downloadiurt-727acfa786b007e48bb81897ddc49540ad6dba82.tar
iurt-727acfa786b007e48bb81897ddc49540ad6dba82.tar.gz
iurt-727acfa786b007e48bb81897ddc49540ad6dba82.tar.bz2
iurt-727acfa786b007e48bb81897ddc49540ad6dba82.tar.xz
iurt-727acfa786b007e48bb81897ddc49540ad6dba82.zip
Prevent lock removal before the build is finished when username contains a _
-rwxr-xr-xulri2
1 files changed, 1 insertions, 1 deletions
diff --git a/ulri b/ulri
index 5e30af3..effe44d 100755
--- a/ulri
+++ b/ulri
@@ -257,7 +257,7 @@ sub todo_func {
sub todo_post {
my ($todo, $f, $m, $s, $r) = @_;
- if ($r =~ /([^_]*)_(.*).lock$/) {
+ if ($r =~ /(\d{14}\.\w+\.\w+\.\d+)_([\w-]+)\.(\w+)\.(\w+)\.(\d{14})\.(\d+)\.lock$/) {
if (!$pkg_tree{$1}{srpms}) {
plog('INFO', "cleaning orphan $r");
unlink "$todo/$f/$m/$s/$r";