1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-06 11:00:13 +02:00

repair fdroid --version

This commit is contained in:
Michael Pöhn 2020-01-21 00:00:11 +01:00
parent f21481ca81
commit 69fc38c668

View File

@ -77,7 +77,7 @@ def main():
sys.exit(0) sys.exit(0)
elif command == '--version': elif command == '--version':
output = _('no version info found!') output = _('no version info found!')
cmddir = os.path.realpath(os.path.dirname(__file__)) cmddir = os.path.realpath(os.path.dirname(os.path.dirname(__file__)))
moduledir = os.path.realpath(os.path.dirname(fdroidserver.common.__file__) + '/..') moduledir = os.path.realpath(os.path.dirname(fdroidserver.common.__file__) + '/..')
if cmddir == moduledir: if cmddir == moduledir:
# running from git # running from git