Do not take path as argument for buildorder.py
This commit is contained in:
parent
d42599b2e3
commit
0c6bde0a53
@ -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
|
||||
|
@ -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…
Reference in New Issue
Block a user