diff options
author | 2013-09-10 06:15:17 +0200 | |
---|---|---|
committer | 2013-09-10 06:15:17 +0200 | |
commit | b9be614d316b878b308b9a06dfa46427af153c91 (patch) | |
tree | 33ca951df766e8f7bf26cf46a332aeea955c215d | |
parent | Added prefixing of predefined configuration values and added read-only-mode a... (diff) | |
download | ufed-b9be614d316b878b308b9a06dfa46427af153c91.tar.gz ufed-b9be614d316b878b308b9a06dfa46427af153c91.tar.bz2 ufed-b9be614d316b878b308b9a06dfa46427af153c91.zip |
Portage.pm: When scanning a make.conf directory, only skip files beginning with . or ending with ~.
-rw-r--r-- | Portage.pm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -528,9 +528,10 @@ sub _get_files_from_dir { defined($isRecursive) or $isRecursive = 0; for my $confFile (glob("$search_path/*")) { - # Skip hidden, backup and temporary files + + # Skip hidden and backup files if ( (-f $confFile ) - && ( ($confFile =~ /(?:\.bak|~|\.old|\.tmp)$/) + && ( ($confFile =~ /~$/) || ($confFile =~ /^\./) ) ) { debugMsg("Skipping file $confFile"); next; |