X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..04db649c0795a57207d1993da45a7b7a3fcb78fa:/buildorder.py diff --git a/buildorder.py b/buildorder.py index 5aeedd93..1ff203a9 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):