[Pkg-owncloud-commits] [owncloud] 87/239: add new function to generate the human readable version string based on version, channel and build number

David Prévot taffit at moszumanska.debian.org
Fri Nov 29 01:32:22 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 228f1788fa2e93d333849a471c3b236f69f90904
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date:   Sun Nov 24 21:26:34 2013 +0100

    add new function to generate the human readable version string based on version, channel and build number
---
 lib/private/util.php | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/private/util.php b/lib/private/util.php
index 426c5a0..b5c5546 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -1111,4 +1111,17 @@ class OC_Util {
 		$t = explode('/', $file);
 		return array_pop($t);
 	}
+
+	/**
+	 * A human readable string is generated based on version, channel and build number
+	 * @return string
+	 */
+	public static function getHumanVersion() {
+		$version = OC_Util::getVersionString().' ('.OC_Util::getChannel().')';
+		$build = OC_Util::getBuild();
+		if(!empty($build) and OC_Util::getChannel() === 'daily') {
+			$version .= ' Build:' . $build;
+		}
+		return $version;
+	}
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list