Add start of caddy package
[termux-packages] / buildorder.py
index 5aeedd9..27249ea 100755 (executable)
@@ -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"):]