Skip to content

Commit

Permalink
Univention AppCenter: show only the major version
Browse files Browse the repository at this point in the history
Currently, Bareos can be installed via Univention AppCenter and then updated via Bareos package repositories.
To prevent that the AppCenter version differs from the Bareos package
version, the AppCenter should only display the Bareos major version
(first 2 components of the version number).
  • Loading branch information
joergsteffens committed Jul 4, 2016
1 parent 1dedc34 commit d2c06e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions autoconf/configure.in
Expand Up @@ -36,6 +36,10 @@ AC_SUBST(BAREOS)dnl
AC_SUBST(post_host)dnl
AC_SUBST(BDB_VERSION)dnl

dnl major version number (first two components)
MAJOR_VERSION=`echo $VERSION | cut -d. -f 1,2`
AC_SUBST(MAJOR_VERSION)

dnl src/lib
dnl can be overwritten by specific values from version.h
LIBBAREOS_LT_RELEASE=`sed -n -e 's/^#.*LIBBAREOS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/include/version.h`
Expand Down
2 changes: 1 addition & 1 deletion platforms/univention/AppCenter/univention-bareos.ini.in
Expand Up @@ -6,7 +6,7 @@ LogoDetailPage=bareos-logo-full.svg
# 2-char Code for this App ID
Code=BR
Name=Bareos Backup Server
Version=@VERSION@
Version=@MAJOR_VERSION@

EmailRequired=True
NotifyVendor=True
Expand Down

0 comments on commit d2c06e5

Please sign in to comment.