pf-tools/pf-tools: ADDFILE: add 'AUTO:' shortcut for unicque source
parmelan-guest at users.alioth.debian.org
parmelan-guest at users.alioth.debian.org
Thu Dec 11 15:43:09 UTC 2014
details: http://hg.debian.org/hg/pf-tools/pf-tools/rev/b2d5f5180ce0
changeset: 1375:b2d5f5180ce0
user: melkor <melkor at sitadelle.com>
date: Thu Dec 11 16:43:06 2014 +0100
description:
ADDFILE: add 'AUTO:' shortcut for unicque source
diffstat:
lib/PFTools/Update/ADDFILE.pm | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r fcb2cb3c461b -r b2d5f5180ce0 lib/PFTools/Update/ADDFILE.pm
--- a/lib/PFTools/Update/ADDFILE.pm Wed Dec 10 16:56:14 2014 +0100
+++ b/lib/PFTools/Update/ADDFILE.pm Thu Dec 11 16:43:06 2014 +0100
@@ -153,6 +153,9 @@
}
}
}
+ elsif ($ref_section->{'source'} =~ m{\AAUTO:(.*)\z}xms ) {
+ $source = __find_source( $options, $hash_subst, [$1] );
+ }
else {
$source = get_source( $ref_section->{'source'},
$options->{'host'}, $hash_subst );
More information about the pf-tools-commits
mailing list