Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da5f4f20 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

roomservice: Allow following up tag references

This is now needed for release builds

Change-Id: I8c5f87341059b3b15ee853312b71df73790ad0d8
parent da639ffc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -218,6 +218,12 @@ else:
            add_auth(githubreq)
            result = json.loads(urllib2.urlopen(githubreq).read())

            ## Try tags, too, since that's what releases use
            if not has_branch(result, default_revision):
                githubreq = urllib2.Request(repository['tags_url'].replace('{/tag}', ''))
                add_auth(githubreq)
                result = json.loads(urllib2.urlopen(githubreq).read())
            
            repo_path = "device/%s/%s" % (manufacturer, device)
            adding = {'repository':repo_name,'target_path':repo_path}