Do not take path as argument for buildorder.py

This commit is contained in:
Fredrik Fornwall 2015-07-04 09:00:46 -04:00
parent d42599b2e3
commit 0c6bde0a53
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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):