New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82437


Ignore:
Timestamp:
08/13/11 15:28:37 (4 years ago)
Author:
fotanus@…
Message:

Merged files_whitelist and folders_whitelist files on whitelist.conf

when parsing, divide for folders and files whitelist.

Location:
branches/gsoc11-post-destroot/base
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • branches/gsoc11-post-destroot/base/doc/Makefile

    r81446 r82437  
    22MAN5=           macports.conf.5 
    33MAN7=           portfile.7 portstyle.7 porthier.7 portgroup.7 
    4 CONF=       macports.conf pubkeys.conf sources.conf variants.conf files_whitelist.conf folders_whitelist.conf 
     4CONF=       macports.conf pubkeys.conf sources.conf variants.conf whitelist.conf 
    55INSTALLDIR=     ${DESTDIR}${prefix} 
    66TOPSRCDIR=      .. 
  • branches/gsoc11-post-destroot/base/src/macports1.0/macports.tcl

    r81397 r82437  
    531531 
    532532    # Read dynamic libraries whitelist config files 
    533     set whitelist_conf_files {folders_whitelist files_whitelist} 
    534     foreach whitelist $whitelist_conf_files { 
    535         set file "${macports_conf_path}/${whitelist}.conf" 
    536         if { [file exists $file] } { 
    537             set macports::${whitelist} {} 
    538             set fd [open $file] 
    539             while { [gets $fd line] >= 0 } { 
    540                 lappend macports::${whitelist} $line 
    541             } 
    542             global macports::${whitelist} 
    543         } 
    544     } 
     533    set whitelist_conf_file "${macports_conf_path}/whitelist.conf" 
     534    set macports::folders_whitelist {} 
     535    set macports::files_whitelist {} 
     536    if { [file exists $whitelist_conf_file] } { 
     537        set fd [open $whitelist_conf_file] 
     538        while { [gets $fd line] >= 0 } { 
     539            if { [file isdirectory $line] } { 
     540                lappend macports::folders_whitelist $line 
     541            } else { 
     542                lappend macports::files_whitelist $line 
     543            } 
     544        } 
     545    } 
     546    global macports::folders_whitelist 
     547    global macports::files_whitelist 
    545548 
    546549    # Process per-user only settings 
Note: See TracChangeset for help on using the changeset viewer.