Skip to content

Commit

Permalink
[backend] simplify BSXML.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Oct 2, 2012
1 parent edd2888 commit 45e0c3c
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions src/backend/BSXML.pm
Expand Up @@ -1475,35 +1475,33 @@ our $attributes = [

# define constraints for build jobs in packages or projects.
our $constraints = [
[[ 'hostlabel' => '_content' ]], # workers might get labels defined by admin, for example for benchmarking.
[[ 'sandbox' => '_content' ]], # xen/kvm/chroot/secure
'hostlabel', # workers might get labels defined by admin, for example for benchmarking.
'sandbox', # xen/kvm/chroot/secure
[ 'linux' =>
[ 'version' =>
[],
[ 'max' => '_content' ],
[ 'min' => '_content' ],
[],
'max' ,
'min' ,
],
[ 'flavor' => '_content' ],
'flavor',
],
[ 'hardware' =>
[ 'cpu' =>
[[ 'flag' => '_content' ]],
[[ 'flag' ]],
],
'processors',
[ 'disk' =>
[ 'size' =>
'unit',
'_content'
],
],
[ 'memory' =>
[ 'size' =>
'unit',
'_content'
],
],
],
[ 'processors' => '_content' ],
[ 'disk' =>
[ 'size' =>
'unit',
[],
'_content'
],
],
[ 'memory' =>
[ 'size' =>
'unit',
[],
'_content'
],
],
];

Expand Down

0 comments on commit 45e0c3c

Please sign in to comment.