From 0c6bde0a531b14812aa8ef0e5df075ac4b53e080 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 4 Jul 2015 09:00:46 -0400 Subject: [PATCH] Do not take path as argument for buildorder.py --- build-all.sh | 2 +- buildorder.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build-all.sh b/build-all.sh index 26136918f..77815b244 100755 --- a/build-all.sh +++ b/build-all.sh @@ -11,7 +11,7 @@ if [ -e $BUILDORDER_FILE ]; then else rm -Rf $HOME/termux /data/data $HOME/termux/_buildall mkdir -p $HOME/termux/_buildall - ./buildorder.py packages > $BUILDORDER_FILE + ./buildorder.py > $BUILDORDER_FILE fi exec >> $HOME/termux/_buildall/ALL.out 2>> $HOME/termux/_buildall/ALL.err diff --git a/buildorder.py b/buildorder.py index 5aeedd934..1ff203a92 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):