taskotron: fix duplicate jobs prevention #2

In commit 77cf9ae061 I had the condition inverted, sigh.
This commit is contained in:
Kamil Páral 2019-04-16 09:06:20 +02:00
parent 77cf9ae061
commit e22233b5db

View file

@ -284,7 +284,7 @@ def today(props):
# (see https://pagure.io/taskotron/issue/273 )
factory.addStep(steps.MasterShellCommand(
command=util.Interpolate(
'test -d {{ public_artifacts_dir }}/%(kw:today)s/%(prop:uuid)s/ || '
'! test -d {{ public_artifacts_dir }}/%(kw:today)s/%(prop:uuid)s/ || '
'( echo Multiple jobs with same UUID detected, aborting execution!; '
' echo See https://pagure.io/taskotron/issue/273 ; '
' exit 1 )',