Author: glen                         Date: Mon Nov  2 12:38:43 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix scanning profiles

---- Files affected:
packages/ldap-account-manager:
   configdir.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/ldap-account-manager/configdir.patch
diff -u packages/ldap-account-manager/configdir.patch:1.1 
packages/ldap-account-manager/configdir.patch:1.2
--- packages/ldap-account-manager/configdir.patch:1.1   Mon Nov  2 13:33:26 2009
+++ packages/ldap-account-manager/configdir.patch       Mon Nov  2 13:38:38 2009
@@ -1,6 +1,6 @@
 --- ldap-account-manager-2.8.0/lib/config.inc  2009-11-02 14:12:38.657153013 
+0200
 +++ ldap-account-manager-2.8.0/lib/config.inc  2009-11-02 14:12:38.657153013 
+0200
-@@ -100,7 +100,7 @@
+@@ -100,12 +100,16 @@
  * @return array profile names
  */
  function getConfigProfiles() {
@@ -9,7 +9,16 @@
        $ret = array();
        $pos = 0;
        while ($entry = $dir->read()){
-@@ -442,7 +442,7 @@
+               $ext = substr($entry, strlen($entry)-5, 5);
+               $name = substr($entry, 0, strlen($entry)-5);
++              // ignore apache,httpd,lighttpd config files
++              if (in_array($name, array('apache', 'httpd', 'lighttpd'))) {
++                      continue;
++              }
+               // check if extension is right, add to profile list
+               if ($ext == ".conf") {
+                       $ret[$pos] = $name;
+@@ -442,7 +446,7 @@
         * @return string path on filesystem
         */
        private function getPath() {
@@ -18,7 +27,7 @@
        }
  
        // functions to read/write preferences
-@@ -1044,7 +1044,7 @@
+@@ -1044,7 +1048,7 @@
        * @return boolean true if file was readable
        */
        private function reload() {
@@ -27,7 +36,7 @@
                if (is_file($conffile) == True) {
                        $file = @fopen($conffile, "r");
                        if (!$file) return false; // abort if file is not 
readable
-@@ -1071,7 +1071,7 @@
+@@ -1071,7 +1075,7 @@
        * Saves preferences to config file config.cfg
        */
        public function save() {
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ldap-account-manager/configdir.patch?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to