diff options
author | Ed Bartosh <eduard.bartosh@intel.com> | 2014-05-12 13:07:04 +0300 |
---|---|---|
committer | Ed Bartosh <eduard.bartosh@intel.com> | 2014-05-19 11:14:46 +0300 |
commit | 358c02ea38abfdcbf688043e36d9d4ce9e8e060b (patch) | |
tree | f3700b9e472dc25247bbfae76130080c102dbf74 | |
parent | f052eff527bdd666a302a0b93c57fcc7c07e076f (diff) | |
download | repa-358c02ea38abfdcbf688043e36d9d4ce9e8e060b.tar.gz repa-358c02ea38abfdcbf688043e36d9d4ce9e8e060b.tar.bz2 repa-358c02ea38abfdcbf688043e36d9d4ce9e8e060b.zip |
Add -group suffix to the path
To distinguish groups from simple prerelease projects let's add
-group suffix to project path.
This was requested by QA team as they may consider to test only
group images as they don't have enough capacity to test all submissions,
so they need a way to distinguish groups.
Change-Id: I6c5f6d87d5e6b7ee1a51c84407876b8513111fa8
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
-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 |