pf-tools/pf-tools: search automaticaly %SECTIONNAME% in HOSTSITE...

parmelan-guest at users.alioth.debian.org parmelan-guest at users.alioth.debian.org
Fri Dec 5 15:06:04 UTC 2014


details:   http://hg.debian.org/hg/pf-tools/pf-tools/rev/bb00790b4071
changeset: 1353:bb00790b4071
user:      melkor <melkor at sitadelle.com>
date:      Fri Dec 05 16:06:01 2014 +0100
description:
search automaticaly %SECTIONNAME% in HOSTSITE, HOST, SHORTHOSTHOSTSITE, SHORTHOSTHOST, CONFIGSITE and CONFIG if source not defined in add-file action

diffstat:

 lib/PFTools/Update/ADDFILE.pm |  8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diffs (18 lines):

diff -r 590a1edbb17d -r bb00790b4071 lib/PFTools/Update/ADDFILE.pm
--- a/lib/PFTools/Update/ADDFILE.pm	Fri Dec 05 15:53:47 2014 +0100
+++ b/lib/PFTools/Update/ADDFILE.pm	Fri Dec 05 16:06:01 2014 +0100
@@ -87,14 +87,6 @@
         }
     }
     elsif (!$ref_section->{'source'}) {
-        $ref_section->{'source'} = 'SHORTHOSTSITE';
-        $source = get_source( $ref_section->{'source'},
-            $options->{'host'}, $hash_subst );
-        if ( !-e $source ) {
-            $ref_section->{'source'} = 'SHORTHOST';
-            $source = get_source( $ref_section->{'source'},
-                $options->{'host'}, $hash_subst );
-        }
         my @search_dirs = (
             'HOSTSITE',
             'HOST',



More information about the pf-tools-commits mailing list