-
-
Notifications
You must be signed in to change notification settings - Fork 951
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accommodate multiple versions of APK repos
Move the pointers to the repos so that we can keep pointers to more than one version in git, and choose which one to use from one place, making it easier to switch between versions.
- Loading branch information
Showing
7 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
|
||
def trim(x, start, end): | ||
assert x.startswith(start) | ||
assert x.endswith(end) | ||
return x[len(start):-len(end)] | ||
|
||
APK_REPOSITORIES = [ | ||
'v3.14/main/x86', | ||
'v3.14/community/x86', | ||
] | ||
|
||
repos_file = [] | ||
for repo in APK_REPOSITORIES: | ||
with open(f'{os.environ["SRCROOT"]}/deps/aports/{repo}/index.txt') as f: | ||
index_name = f.read() | ||
index_name = trim(index_name, 'APKINDEX-', '.tar.gz\n') | ||
repos_file.append(f'http://apk.ish.app/{index_name}/{repo}') | ||
|
||
with open(os.path.join(os.environ['BUILT_PRODUCTS_DIR'], os.environ['CONTENTS_FOLDER_PATH'], 'repositories.txt'), 'w') as f: | ||
for line in repos_file: | ||
print(line, file=f) |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters