Update of /cvsroot/fink/php-lib
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv17162

Modified Files:
        finkinfo.inc releases.inc 
Added Files:
        get_distributions.php 
Log Message:
more distribution stuff

Index: finkinfo.inc
===================================================================
RCS file: /cvsroot/fink/php-lib/finkinfo.inc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- finkinfo.inc        16 Nov 2007 20:12:58 -0000      1.4
+++ finkinfo.inc        17 Nov 2007 03:44:15 -0000      1.5
@@ -74,17 +74,17 @@
        protected $name;
        protected $architecture;
        protected $description;
-       protected $rcsurl;
+       protected $rcspath;
        protected $priority = 0;
        protected $isActive = TRUE;
        protected $isVisible = TRUE;
        protected $isSupported = FALSE;
 
-       public function __construct($name, $architecture, $description = NULL, 
$rcsurl = NULL, $priority = 0, $isActive = TRUE, $isVisible = TRUE, 
$isSupported = FALSE) {
+       public function __construct($name, $architecture, $description = NULL, 
$rcspath = NULL, $priority = 0, $isActive = TRUE, $isVisible = TRUE, 
$isSupported = FALSE) {
                $this->name         = $name;
                $this->architecture = $architecture;
                $this->description  = isset($description)? $description : $name;
-               $this->rcsurl       = $rcsurl;
+               $this->rcspath      = $rcspath;
                $this->priority     = $priority;
                $this->isActive     = $isActive;
                $this->isVisible    = $isVisible;
@@ -103,8 +103,8 @@
        public function setArchitecture($arch) { $this->architecture = $arch; }
        public function getDescription()       { return $this->description; }
        public function setDescription($desc)  { $this->description = $desc; }
-       public function getRcsUrl()            { return $this->rcsurl; }
-       public function setRcsUrl($url)        { $this->rcsurl = $url; }
+       public function getRcsPath()           { return $this->rcspath; }
+       public function setRcsPath($path)      { $this->rcspath = $path; }
 
        public function getPriority()          { return $this->priority; }
        public function setPriority($prio)     { $this->priority = $prio; }

--- NEW FILE: get_distributions.php ---
#!/usr/bin/env php -q
<?php

include "releases.inc";

$stdout = fopen('php://output', 'w');

foreach ($distributions as $key => $value) {
        $distinfo = array($key, $value->getName(), $value->getArchitecture(), 
$value->getDescription(), $value->getRcsPath(), $value->getPriority(), 
$value->isActive(), $value->isVisible(), $value->isSupported());
        fputcsv($stdout, $distinfo);
}

fclose($stdout);

?>

Index: releases.inc
===================================================================
RCS file: /cvsroot/fink/php-lib/releases.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- releases.inc        16 Nov 2007 20:13:53 -0000      1.1
+++ releases.inc        17 Nov 2007 03:44:15 -0000      1.2
@@ -3,13 +3,13 @@
 include "finkinfo.inc";
 
 $distributions = array(
-       "10.1"         => new Distribution("10.1",        "powerpc", "10.1",    
           "http://fink.cvs.sourceforge.net/fink/packages/dists";,    1, false, 
false, false),
-       "10.2-gcc3.3"  => new Distribution("10.2-gcc3.3", "powerpc", "10.2 
(gcc3.3 only)", "http://fink.cvs.sourceforge.net/fink/dists/10.2-gcc3.3";, 2, 
true, true, false),
-       "10.3"         => new Distribution("10.3",        "powerpc", "10.3",    
           "http://fink.cvs.sourceforge.net/fink/dists/10.3";,        3, true, 
true, true),
-       "10.4/powerpc" => new Distribution("10.4",        "powerpc", 
"10.4/powerpc",       "http://fink.cvs.sourceforge.net/fink/dists/10.4";,        
4, true, true, true),
-       "10.4/i386"    => new Distribution("10.4",        "i386",    
"10.4/i386",          "http://fink.cvs.sourceforge.net/fink/dists/10.4";,        
5, true, true, true),
-       "10.5/powerpc" => new Distribution("10.5",        "powerpc", 
"10.5/powerpc",       "http://fink.cvs.sourceforge.net/fink/dists/10.5";,        
6, true, true, true),
-       "10.5/i386"    => new Distribution("10.5",        "i386",    
"10.5/i386",          "http://fink.cvs.sourceforge.net/fink/dists/10.5";,        
7, true, true, true),
+       "10.1"         => new Distribution("10.1",        "powerpc", "10.1",    
           "packages/dists",    1, false, false, false),
+       "10.2-gcc3.3"  => new Distribution("10.2-gcc3.3", "powerpc", "10.2 
(gcc3.3 only)", "dists/10.2-gcc3.3", 2, true, true, false),
+       "10.3"         => new Distribution("10.3",        "powerpc", "10.3",    
           "dists/10.3",        3, true, true, true),
+       "10.4/powerpc" => new Distribution("10.4",        "powerpc", 
"10.4/powerpc",       "dists/10.4",        4, true, true, true),
+       "10.4/i386"    => new Distribution("10.4",        "i386",    
"10.4/i386",          "dists/10.4",        5, true, true, true),
+       "10.5/powerpc" => new Distribution("10.5",        "powerpc", 
"10.5/powerpc",       "dists/10.5",        6, true, true, true),
+       "10.5/i386"    => new Distribution("10.5",        "i386",    
"10.5/i386",          "dists/10.5",        7, true, true, true),
 );
 
 $releases = array(


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to