If no permission to create target project, gbs return:
error <obs>: Can't set meta for Tools:Devel1: HTTP Error 403: Forbidden
Without this patch, gbs rb can only create target project with name start
with home, which does not make sense.
Change-Id: I7ba7f2f01b9b01a1beca920412fdc53c4641e292
msger.info('checking status of obs project: %s ...' % target_prj)
if not api.exists(target_prj):
- # FIXME: How do you know that a certain user does not have
- # permissions to create any project, anywhewre?
- if args.target_obsprj and \
- not target_prj.startswith('home:%s:' % apiurl.user):
- msger.error('no permission to create project %s, only sub '
- 'projects of home:%s are '
- 'allowed ' % (target_prj, apiurl.user))
-
msger.info('copying settings of %s to %s' % (base_prj, target_prj))
api.copy_project(base_prj, target_prj)