~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add start of caddy package
[termux-packages]
/
buildorder.py
diff --git
a/buildorder.py
b/buildorder.py
index
5aeedd9
..
27249ea
100755
(executable)
--- a/
buildorder.py
+++ b/
buildorder.py
@@
-7,9
+7,8
@@
def die(msg):
print('ERROR: ' + msg)
sys.exit(1)
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):
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()
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"):]
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"):]