Skip to content
This repository was archived by the owner on Dec 12, 2022. It is now read-only.

Commit 9f61ce9

Browse files
mardyUniversalSuperBox
authored andcommitted
Fix installation of PR repositories (#8)
1 parent 5943886 commit 9f61ce9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ubports-qa

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ IS_ROOT = os.geteuid() == 0
1919

2020
class Status(Enum):
2121
SUCCESS = 1
22-
BULDING = 2
22+
BUILDING = 2
2323
FAILED = 3
2424

2525

@@ -138,10 +138,6 @@ def get_issue_status(repo, ref):
138138
return Status.FAILED
139139

140140

141-
def get_issue_branch(repo, num):
142-
return get_github_pr(repo, num)["head"]["ref"]
143-
144-
145141
def print_error(error_message):
146142
"""Prints error_message in red"""
147143
print("\033[91m" + error_message + "\033[0m")
@@ -157,7 +153,7 @@ def install_command(args):
157153
"""Install a PPA or Pull Request"""
158154
if args.pr != -1:
159155
args.repo.replace("ubports/", "")
160-
ref = get_issue_branch(args.repo, args.pr)
156+
ref = 'PR-' + str(args.pr)
161157
status = get_issue_status(args.repo, ref)
162158
if status == Status.FAILED:
163159
die("Issue failed to build")

0 commit comments

Comments
 (0)