mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Integrate level list directly into package_check
This commit is contained in:
parent
c33809c737
commit
056994f84b
2 changed files with 12 additions and 4 deletions
11
levels.list
Normal file
11
levels.list
Normal file
|
@ -0,0 +1,11 @@
|
|||
0 Broken
|
||||
1 Installable
|
||||
2 Installable in all situations
|
||||
3 Can be updated
|
||||
4 Backup and restore support
|
||||
5 Clean
|
||||
6 Open to contributions from the community
|
||||
7 Successfully pass functional tests
|
||||
8 High quality app
|
||||
9 Respect higher guidelines
|
||||
10 Package assessed as perfect
|
|
@ -264,9 +264,6 @@ rm "$script_dir/pcheck.lock"
|
|||
exec "$script_dir/package_check.sh" "${arguments[@]}"
|
||||
EOF
|
||||
|
||||
# Get the last version of app_levels/en.json
|
||||
wget -nv https://raw.githubusercontent.com/YunoHost/apps/master/app_levels/en.json -O "$script_dir/levels.json"
|
||||
|
||||
# Give the execution right
|
||||
chmod +x "$script_dir/upgrade_script.sh"
|
||||
|
||||
|
@ -856,7 +853,7 @@ TEST_RESULTS () {
|
|||
|
||||
# Then, print the levels
|
||||
# Print the global level
|
||||
verbose_level=$(grep applevel_$global_level\" "$script_dir/levels.json" | cut -d'"' -f4)
|
||||
verbose_level=$(grep "^$global_level " "$script_dir/levels.list" | cut -c4-)
|
||||
|
||||
ECHO_FORMAT "Level of this application: $global_level ($verbose_level)\n" "white" "bold"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue