-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
El Mon, 3 Jun 2013 10:26:20 +0200
Dan Horák <dan(a)danny.cz> escribió:
When building for multiple tags it could be useful to set different
priorities for the tasks, eg. rawhide builds will be lower prio than
branched builds. ---
util/koji-shadow | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/util/koji-shadow b/util/koji-shadow
index 25492d5..8790cf8 100755
--- a/util/koji-shadow
+++ b/util/koji-shadow
@@ -140,6 +140,8 @@ def get_options():
help=_("tag sucessful builds into the tag we
are building, default is to not tag")) parser.add_option("--arches",
help=_("arches to use when creating tags"))
+ parser.add_option("--priority", type="int", default=5,
+ help=_("priority to set for submitted builds"))
#parse once to get the config file
(options, args) = parser.parse_args()
@@ -1080,7 +1082,7 @@ class BuildTracker(object):
#TODO ...and verify repo
repo_id, event_id = session.getTaskResult(task_id)
#kick off build
- task_id = session.build(src, None, opts={'repo_id':
repo_id}, priority=5 )
+ task_id = session.build(src, None, opts={'repo_id':
repo_id}, priority=options.priority ) return task_id
def report(self):
Applied thanks
Dennis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAEBAgAGBQJSpgQfAAoJEH7ltONmPFDRQ+wP/ihn4sDPok4TtetbTTZJ2OOc
e+9pbt8UM+bhOmwsMBlkxG5fxW0S97YctBR+hQJDrEzz1bJKqtSs53/MrSzktzFh
oTdrWJqIof4ojg6rRCGOr5tyGICTibFDrWDapQ3zwgQmOu98zseS8x2cEE501/lA
kBJzK3c0Vp2H9p0j4wGGZumuJcLpb+Ep2XOUnLoqV+BszPguBU8Elb9Ba9Yl2oZa
Bc+CYBwBv2b+M1PlUlVau5eI0lMtBPg/jcFrGtrJiC37mY327whhGOAAtY+csI9P
XI8Dz1XQj5O0mCaj2A/PY1nTztHO2yzVzsWR29y2WHF5byMzJBtRhFEt2bZeX6az
794jcm7gDEluey9h9IVz2SnigWzoJ0wSd5jl4/QblSDkkTvhATBxlsAhxk8R5FaW
waxU3vlqpvMPmqU8AEp8jOMHV4dt+qEiQK2nrRI+OMGoKBY+6OvCOyLBKtUm6c+/
+cicePu+nsG5VvuEsTtDCCW5pkprwjnCZJuQCnuJcBy/YX6TztEBmncMiGsbOT17
GPGFf3kZz39HTh43cBvxwWHnb/2Rp05lEU+CRl1iwhF+97tXLLfzYUquMijkW0E7
XxPgrMhYNo4IO6isngVjlAICoobHuYBiS3c3W2sT39HLfhWDNY5MAePDmtMBuCfk
2vjt5SUB8zNgFeemXQIN
=5rpt
-----END PGP SIGNATURE-----