projects
/
web
/
firmware-selector-openwrt-org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37b9f2e
)
misc/collect.py: add python version check
author
Moritz Warning
<moritzwarning@web.de>
Sun, 13 Sep 2020 11:33:11 +0000
(13:33 +0200)
committer
Moritz Warning
<moritzwarning@web.de>
Sun, 13 Sep 2020 12:38:45 +0000
(14:38 +0200)
make sure the program is only executed by Python >=3.5.0
misc/collect.py
patch
|
blob
|
history
diff --git
a/misc/collect.py
b/misc/collect.py
index d3c1f5a5b5ece382cead24a1b106ebfedddcc85e..9608279da67bcccebd5728227d31b3a276097920 100755
(executable)
--- a/
misc/collect.py
+++ b/
misc/collect.py
@@
-15,6
+15,8
@@
import re
SUPPORTED_METADATA_VERSION = 1
+assert sys.version_info >= (3, 5), "Python version too old. Python >=3.5.0 needed."
+
# accepts {<file-path>: <file-content>}
def merge_profiles(profiles, download_url):