mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Make "gendummydata.py" Python 3 compliant.
* Transform into valid Python 3.x code using 2to3. * Change shebang from "/usr/bin/python2" to "/usr/bin/python3". * Invoke with "python3" instead of "python2" in "reloadtestdb.sh". Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
e1bf49e03c
commit
31cda618ca
2 changed files with 15 additions and 15 deletions
|
@ -20,7 +20,7 @@ mysql -h $DB_HOST -u $DB_USER -p$DB_PASS < aur-schema.sql
|
|||
|
||||
if [ ! -f $DATA_FILE ]; then
|
||||
echo "creating dumy-data..."
|
||||
python2 gendummydata.py $DATA_FILE
|
||||
python3 gendummydata.py $DATA_FILE
|
||||
fi
|
||||
|
||||
echo "loading dummy-data..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue