From: Frank Karlitschek Date: Tue, 2 Oct 2012 10:10:45 +0000 (+0200) Subject: automatically remove and prevent installation of apps with a require version less... X-Git-Tag: v4.5.0RC2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3fdebaa5dc4a903e9db64f8bafe11929c5f50304;p=nextcloud-server.git automatically remove and prevent installation of apps with a require version less than the current one. We check now the first ad second part of the version number. Also increase the require tags of the core apps to 4.9 Please note that 4.9 is the internal versionnumber of the upcoming 4.5 release. You have to pu a 4.9 into the info.xml of your app to make it as compatible with 4.5 --- diff --git a/apps/files/appinfo/info.xml b/apps/files/appinfo/info.xml index e58f83c5a01..0a1b196b06f 100644 --- a/apps/files/appinfo/info.xml +++ b/apps/files/appinfo/info.xml @@ -5,7 +5,7 @@ File Management AGPL Robin Appelman - 4 + 4.9 true diff --git a/apps/files_encryption/appinfo/info.xml b/apps/files_encryption/appinfo/info.xml index 419bdb1b120..48a28fde78a 100644 --- a/apps/files_encryption/appinfo/info.xml +++ b/apps/files_encryption/appinfo/info.xml @@ -5,7 +5,7 @@ Server side encryption of files. DEPRECATED. This app is no longer supported and will be replaced with an improved version in ownCloud 5. Only enable this features if you want to read old encrypted data. Warning: You will lose your data if you enable this App and forget your password. Encryption is not yet compatible with LDAP. AGPL Robin Appelman - 4 + 4.9 true diff --git a/apps/files_external/appinfo/info.xml b/apps/files_external/appinfo/info.xml index e0301365d16..3da1913c5fc 100644 --- a/apps/files_external/appinfo/info.xml +++ b/apps/files_external/appinfo/info.xml @@ -5,7 +5,7 @@ Mount external storage sources AGPL Robin Appelman, Michael Gapczynski - 4 + 4.9 true diff --git a/apps/files_sharing/appinfo/info.xml b/apps/files_sharing/appinfo/info.xml index 6a8fc89adae..a44d0338bb6 100644 --- a/apps/files_sharing/appinfo/info.xml +++ b/apps/files_sharing/appinfo/info.xml @@ -5,7 +5,7 @@ File sharing between users AGPL Michael Gapczynski - 4 + 4.9 true diff --git a/apps/files_versions/appinfo/info.xml b/apps/files_versions/appinfo/info.xml index d806291ed1d..e4e5a365d51 100644 --- a/apps/files_versions/appinfo/info.xml +++ b/apps/files_versions/appinfo/info.xml @@ -4,7 +4,7 @@ Versions AGPL Frank Karlitschek - 4 + 4.9 true Versioning of files diff --git a/apps/user_ldap/appinfo/info.xml b/apps/user_ldap/appinfo/info.xml index de0daf146e3..30fbf687dbe 100644 --- a/apps/user_ldap/appinfo/info.xml +++ b/apps/user_ldap/appinfo/info.xml @@ -5,7 +5,7 @@ Authenticate Users by LDAP AGPL Dominik Schmidt and Arthur Schiwon - 4 + 4.9 true diff --git a/apps/user_webdavauth/appinfo/info.xml b/apps/user_webdavauth/appinfo/info.xml index dc555739f46..9a8027daee6 100755 --- a/apps/user_webdavauth/appinfo/info.xml +++ b/apps/user_webdavauth/appinfo/info.xml @@ -6,6 +6,6 @@ 1.0 AGPL Frank Karlitschek - 3 + 4.9 true diff --git a/lib/app.php b/lib/app.php index 7889339e420..90b5c58a448 100755 --- a/lib/app.php +++ b/lib/app.php @@ -664,8 +664,8 @@ class OC_App{ $version = OC_Util::getVersion(); foreach($apps as $app) { // check if the app is compatible with this version of ownCloud - $info = OC_App::getAppInfo($app); - if(!isset($info['require']) or ($version[0]>$info['require'])) { + $info = OC_App::getAppInfo($app); + if(!isset($info['require']) or (($version[0].'.'.$version[1])>$info['require'])) { OC_Log::write('core', 'App "'.$info['name'].'" ('.$app.') can\'t be used because it is not compatible with this version of ownCloud', OC_Log::ERROR); OC_App::disable( $app ); } diff --git a/lib/util.php b/lib/util.php index db715a7a0f3..255faf8df76 100755 --- a/lib/util.php +++ b/lib/util.php @@ -80,8 +80,8 @@ class OC_Util { * @return array */ public static function getVersion() { - // hint: We only can count up. So the internal version number of ownCloud 4.5 will be 4,9,0. This is not visible to the user - return array(4,85,11); + // hint: We only can count up. So the internal version number of ownCloud 4.5 will be 4.9.0. This is not visible to the user + return array(4,86,11); } /**