devuan-releasebot

devuan's releasebot reimplemented (scorsh version)
git clone git://parazyd.org/devuan-releasebot.git
Log | Files | Refs | LICENSE

commit eed3cc9dd7b75a0eb7addaf3a0a066ce70f8edd7
parent 17d8c403bcbd68df769c85d4f08878cd41dad35d
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 24 Jul 2017 18:08:08 +0200

move pkgname and group outside of the for loop in builddel

Diffstat:
Mbuilddel.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/builddel.py b/builddel.py @@ -29,14 +29,15 @@ def main(): print('Error in request. Possible authentication fail.') sys.exit(1) + # the -4 cuts off '.git' from the path + pkgname = basename(env['SCORSH_REPO'])[:-4] + group = env['SCORSH_GROUP'] + for jobt in jobtypes: - # the -4 cuts off '.git' from the path - pkgname = basename(env['SCORSH_REPO'])[:-4] jobname = '-'.join([pkgname, jobt]) # TODO: here maybe correlate to config.buildgroups # i.e.: if not group in buildgroups: exit - group = env['SCORSH_GROUP'] print('* Trying to delete %s job for %s/%s' % (jobt, group, pkgname))