Commit 0478279
committed
Fixing referenced before assignment
This is the error message which appears without the change:
'''
[INFO]: # Downloading recipes
[INFO]: Downloading qt5
[DEBUG]: -> running mkdir -p /home/thopiekar/.local/share/python-for-android/packages/qt5
[INFO]: -> directory context /home/thopiekar/.local/share/python-for-android/packages/qt5
[DEBUG]: -> running basename http://download.qt.io/official_releases/qt/5.7/5.7.0/single/qt-everywhere-opensource-src-5.7.0.tar.gz
[DEBUG]: qt-everywhere-opensource-src-5.7.0.tar.gz
[WARNING]: Should check headers here! Skipping for now.
Downloading qt5 from http://download.qt.io/official_releases/qt/5.7/5.7.0/single/qt-everywhere-opensource-src-5.7.0.tar.gz
[DEBUG]: -> running rm -f .mark-qt-everywhere-opensource-src-5.7.0.tar.gz
[INFO]: Downloading qt5 from http://download.qt.io/official_releases/qt/5.7/5.7.0/single/qt-everywhere-opensource-src-5.7.0.tar.gz
[DEBUG]: -> running touch .mark-qt-everywhere-opensource-src-5.7.0.tar.gz
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/media/hdd/home/thopiekar/Projekte/GIT/thopiekar/python-for-android_fork/pythonforandroid/toolchain.py", line 837, in <module>
main()
File "/media/hdd/home/thopiekar/Projekte/GIT/thopiekar/python-for-android_fork/pythonforandroid/toolchain.py", line 834, in main
ToolchainCL()
File "/media/hdd/home/thopiekar/Projekte/GIT/thopiekar/python-for-android_fork/pythonforandroid/toolchain.py", line 489, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/media/hdd/home/thopiekar/Projekte/GIT/thopiekar/python-for-android_fork/pythonforandroid/toolchain.py", line 147, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/media/hdd/home/thopiekar/Projekte/GIT/thopiekar/python-for-android_fork/pythonforandroid/toolchain.py", line 190, in build_dist_from_args
build_recipes(build_order, python_modules, ctx)
File "pythonforandroid/build.py", line 540, in build_recipes
File "pythonforandroid/recipe.py", line 342, in download_if_necessary
File "pythonforandroid/recipe.py", line 385, in download
UnboundLocalError: local variable 'current_md5' referenced before assignment
'''1 parent 5ce57ca commit 0478279
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| |||
0 commit comments