diff options
-rw-r--r-- | repa/common.py | 2 | ||||
-rwxr-xr-x | repa/group.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/repa/common.py b/repa/common.py index 51128e2..5f41030 100644 --- a/repa/common.py +++ b/repa/common.py @@ -43,6 +43,8 @@ class RepaException(Exception): def get_project_by_name(obs, name, target): """Lookup for a project in OBS by submission or group name.""" + if name.startswith('submitgroup/'): + name += '-group' projects = list(obs.get_projects('^%s%s:%s$' % (OBS_PROJECT_PREFIX, target, name.replace('/', ':')))) if not projects: diff --git a/repa/group.py b/repa/group.py index 506eb02..188d82e 100755 --- a/repa/group.py +++ b/repa/group.py @@ -97,7 +97,7 @@ def create_group_project(obs, submissions, meta, comment): timestamp) gmeta = {'name': name, 'obs_target_prj': target_prj, 'submissions': submissions, 'comment': comment} - project = '%s%s:%s' % (OBS_PROJECT_PREFIX, str(target_prj), + project = '%s%s:%s-group' % (OBS_PROJECT_PREFIX, str(target_prj), name.replace('/', ':')) saved = sys.stdout |