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

Commit

Permalink
Merge pull request #8 from jatindhankhar/update-base-image
Browse files Browse the repository at this point in the history
Bump docker base image to fedora 26 and fix url split issue.
  • Loading branch information
scanterog authored Jul 26, 2017
2 parents 02a7541 + 0801228 commit 4f7e816
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
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

0 comments on commit 4f7e816

Please sign in to comment.