|
|
@ -30,6 +30,7 @@ packages_map = {} |
|
|
|
packages_dir = 'packages' |
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
|
for subdir_name in sorted(os.listdir(packages_dir)): |
|
|
|
subdir_path = packages_dir + '/' + subdir_name |
|
|
|
|
|
|
@ -53,6 +54,7 @@ for subdir_name in sorted(os.listdir(packages_dir)): |
|
|
|
dep = dep.strip() |
|
|
|
if not dep.endswith('libandroid-support-dev'): |
|
|
|
this_package.remaining_dependencies.add(dep) |
|
|
|
|
|
|
|
for file_in_subdir_name in sorted(os.listdir(subdir_path)): |
|
|
|
if file_in_subdir_name.endswith('.subpackage.sh'): |
|
|
|
subpackage_name = file_in_subdir_name[0:-len(".subpackage.sh"):] |
|
|
@ -73,7 +75,9 @@ for subdir_name in sorted(os.listdir(packages_dir)): |
|
|
|
for package in all_packages: |
|
|
|
for remaining in package.remaining_dependencies: |
|
|
|
if remaining not in packages_map: |
|
|
|
die('Package ' + package.name + ' depends on non-existing package "' + remaining + '"') |
|
|
|
die('Package %s depends on non-existing package "%s"' % ( |
|
|
|
package.name, remaining |
|
|
|
)) |
|
|
|
packages_map[remaining].prerequisite_for.add(package) |
|
|
|
|
|
|
|
# List of all DebianPackage:s without dependencies |
|
|
@ -111,3 +115,6 @@ if len(all_packages) != len(build_order): |
|
|
|
|
|
|
|
for pkg in build_order: |
|
|
|
print(pkg.name) |
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
main() |
|
|
|