Browse Source

Do not take path as argument for buildorder.py

android-5
Fredrik Fornwall 10 years ago
parent
commit
0c6bde0a53
  1. 2
      build-all.sh
  2. 5
      buildorder.py

2
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

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

Loading…
Cancel
Save