Andrey Gusev : Add new license.

Jeremy Newman jnewman at winehq.org
Tue Jan 10 09:37:08 CST 2017


Module: appdb
Branch: master
Commit: bd586887f6f0169577e004fb62b3ed05945ae1ba
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=bd586887f6f0169577e004fb62b3ed05945ae1ba

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Mon Jan  9 23:45:51 2017 +0200

Add new license.

Signed-off-by: Jeremy Newman <jnewman at codeweavers.com>

---

 include/version.php     | 5 +++--
 tables/appdb_tables.sql | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/version.php b/include/version.php
index e918a9c..2e34d1a 100644
--- a/include/version.php
+++ b/include/version.php
@@ -20,6 +20,7 @@ define("LICENSE_DEMO", "Demo");
 define("LICENSE_RETAIL", "Retail");
 define('LICENSE_FREETOUSE', 'Free to use');
 define('LICENSE_FREETOSHARE', 'Free to use and share');
+define('LICENSE_STEAM', 'Steam');
 
 /**
  * Version class for handling versions.
@@ -1370,7 +1371,7 @@ EOT;
     public static function getLicenses()
     {
         return array(LICENSE_RETAIL, LICENSE_OPENSOURCE, LICENSE_FREETOUSE,
-                     LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE);
+                     LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE, LICENSE_STEAM);
     }
 
     // returns a string containing the html for a selection list
@@ -1404,7 +1405,7 @@ EOT;
     public static function checkLicense($sLicense)
     {
         $aLicense = array(LICENSE_RETAIL, LICENSE_OPENSOURCE, LICENSE_FREETOUSE,
-                          LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE);
+                          LICENSE_FREETOSHARE, LICENSE_DEMO, LICENSE_SHAREWARE, LICENSE_STEAM);
 
         foreach($aLicense as $sElement)
         {
diff --git a/tables/appdb_tables.sql b/tables/appdb_tables.sql
index 9fb4672..20239de 100644
--- a/tables/appdb_tables.sql
+++ b/tables/appdb_tables.sql
@@ -58,7 +58,7 @@ create table appVersion (
   ratingRelease 	 text,
   submitTime            datetime NOT NULL,
   submitterId           int(11) NOT NULL default '0',
-  license		enum('Retail','Open Source','Demo','Shareware','Free to use','Free to use and share'),
+  license		enum('Retail','Open Source','Demo','Shareware','Free to use','Free to use and share','Steam'),
   obsoleteBy            int(11) NOT NULL default '0',
   state                 enum('accepted','queued','rejected','pending','deleted') NOT NULL default 'accepted',
   hasMaintainer enum('true','false') NOT NULL default 'false',




More information about the wine-cvs mailing list