Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Bump to Fedora 26 #8

Merged
merged 2 commits into from
Jul 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion activity-build-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fedora:22
FROM fedora:26

RUN dnf install -y git gettext sugar-toolkit-gtk3 sugar-toolkit

Expand Down
6 changes: 1 addition & 5 deletions aslo/api/gh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import hmac
import hashlib
from flask import current_app as app
from urllib.parse import urlparse
from github import Github


Expand All @@ -16,11 +15,8 @@ def auth():


def get_developers(repo_url):
o = urlparse(repo_url)
repo = o.path[1:].strip('.git')

g = auth()
repository = g.get_repo(repo)
repository = g.get_repo(repo_url)
contributors = repository.get_contributors()
developers = []
for c in contributors:
Expand Down
2 changes: 1 addition & 1 deletion aslo/api/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def handle_release(gh_json):
metadata['i18n_summary'] = {'en': metadata.get('summary', '')}

metadata['repository'] = repo_url
metadata['developers'] = gh.get_developers(metadata['repository'])
metadata['developers'] = gh.get_developers(gh_json['repository']['full_name'])
metadata['icon_bin'] = img.get_icon(repo_path, metadata['icon'])

try:
Expand Down