Support for unofficial projects and add savanna

Change-Id: I9eaa72c7c66d672c18f26ec9248fb9ef261bf6ea
This commit is contained in:
Sergey Lukjanov 2013-08-09 00:15:12 +04:00
parent 980627fb64
commit 6c84a3548d
2 changed files with 16 additions and 1 deletions

14
projects/savanna.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "savanna",
"subprojects": [
"stackforge/savanna",
"stackforge/savanna-pythonclient",
"stackforge/savanna-dashboard",
"stackforge/savanna-extra"
],
"unofficial": true,
"core-team": [
"slukjanov",
"aignatov"
]
}

View File

@ -38,7 +38,8 @@ def get_projects_info(project=None, all_projects=False):
if os.path.isfile(fn):
with open(fn, 'r') as f:
project = json.loads(f.read())
projects.append(project)
if not (all_projects and project.get('unofficial')):
projects.append(project)
return projects