tools/. winegecko.php

Jeremy Newman jnewman at wine.codeweavers.com
Thu May 31 10:01:36 CDT 2007


ChangeSet ID:	31153
CVSROOT:	/opt/cvs-commit
Module name:	tools
Changes by:	jnewman at winehq.org	2007/05/31 10:01:36

Modified files:
	.              : winegecko.php 

Log message:
	Jacek Caban <jacek at codeweavers.com>
	Added support for different Gecko package versions.

Patch: http://cvs.winehq.org/patch.py?id=31153

Old revision  New revision  Changes     Path
 1.2           1.3           +12 -2      tools/winegecko.php

Index: tools/winegecko.php
diff -u -p tools/winegecko.php:1.2 tools/winegecko.php:1.3
--- tools/winegecko.php:1.2	31 May 2007 15: 1:36 -0000
+++ tools/winegecko.php	31 May 2007 15: 1:36 -0000
@@ -12,12 +12,22 @@
  * Copyright (c) 2006 Jonathan Ernst
  */
 
+// Chek if a specific version was passed
+if(isset($_GET['v']))
+	$sVersion = $_GET['v'];
 
 // Name of the file
-$sFileName = "wine_gecko.cab";
+$sFileName = "wine_gecko".($sVersion?'-'.$sVersion:'').".cab";
+
+// Size array
+$aFileSizes = array(
+	'default'=>5219822,
+	'0.0.1'=>5219822,
+	'0.1.0'=>5746895
+);
 
 // Exact size of the file:
-$iFileSize = 5219822;
+$iFileSize = ($sVersion?$aFileSizes[$sVersion]:$aFileSizes['default']);
 
 // List of additional locations (commonly used locations are already in download.inc.php)
 $aList = array();



More information about the wine-cvs mailing list