X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..3cb76f30c40e27544dc7f482263a2d4c5ce36640:/buildorder.py?ds=sidebyside diff --git a/buildorder.py b/buildorder.py index 5aeedd93..27249eab 100755 --- a/buildorder.py +++ b/buildorder.py @@ -7,9 +7,8 @@ def die(msg): print('ERROR: ' + msg) sys.exit(1) -if len(sys.argv) != 2: die("Supply path to packages directory as first and only argument") -packages_dir = sys.argv[1] -if not os.path.isdir(packages_dir): die(packages_dir + ' is not a directory') +if len(sys.argv) != 1: die('buildorder.py takes no arguments') +packages_dir = 'packages' class DebianPackage: def __init__(self, name): @@ -37,7 +36,7 @@ for subdir_name in sorted(os.listdir(packages_dir)): deps_comma_separated = line[(line.index('=')+2):(len(line)-2)] for dep in deps_comma_separated.split(','): dep = dep.strip() - this_package.remaining_dependencies.add(dep) + 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"):]