mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Update YunoHost versioning
This commit is contained in:
parent
2fee1eb6f7
commit
bee3d2bcc9
3 changed files with 27 additions and 23 deletions
|
@ -39,7 +39,7 @@ general_arguments:
|
||||||
full: --version
|
full: --version
|
||||||
help: Display YunoHost version
|
help: Display YunoHost version
|
||||||
action: version
|
action: version
|
||||||
version: YunoHost 2.0 beta1
|
version: YunoHost %version%
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
# User #
|
# User #
|
||||||
|
|
19
yunohost
19
yunohost
|
@ -1,25 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__credits__ = """
|
|
||||||
Copyright (C) 2012 YunoHost
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Affero General Public License as published
|
|
||||||
by the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program; if not, see http://www.gnu.org/licenses
|
|
||||||
"""
|
|
||||||
__author__ = 'Kload <kload@kload.fr>'
|
|
||||||
__version__ = '2.0 beta1'
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
|
|
23
yunohost.py
23
yunohost.py
|
@ -22,6 +22,26 @@
|
||||||
"""
|
"""
|
||||||
YunoHost core classes & functions
|
YunoHost core classes & functions
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
__credits__ = """
|
||||||
|
Copyright (C) 2012 YunoHost
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published
|
||||||
|
by the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program; if not, see http://www.gnu.org/licenses
|
||||||
|
"""
|
||||||
|
__author__ = 'Kload <kload@kload.fr>'
|
||||||
|
__version__ = '2.0-beta3'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
try:
|
try:
|
||||||
|
@ -468,6 +488,9 @@ def parse_dict(action_map):
|
||||||
|
|
||||||
# Add general arguments
|
# Add general arguments
|
||||||
for arg_name, arg_params in action_map['general_arguments'].items():
|
for arg_name, arg_params in action_map['general_arguments'].items():
|
||||||
|
if 'version' in arg_params:
|
||||||
|
v = arg_params['version']
|
||||||
|
arg_params['version'] = v.replace('%version%', __version__)
|
||||||
if 'full' in arg_params:
|
if 'full' in arg_params:
|
||||||
arg_names = [arg_name, arg_params['full']]
|
arg_names = [arg_name, arg_params['full']]
|
||||||
arg_fullname = arg_params['full']
|
arg_fullname = arg_params['full']
|
||||||
|
|
Loading…
Add table
Reference in a new issue