Displaying 7 results from an estimated 7 matches for "use_path".
Did you mean:
user_path
2020 Jan 27
2
Re: [PATCH 3/3] docs: don't perform lookup on absolute paths
...i@redhat.com>
> ---
> podwrapper.pl.in | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/podwrapper.pl.in b/podwrapper.pl.in
> index f12a173f..1e4aa149 100755
> --- a/podwrapper.pl.in
> +++ b/podwrapper.pl.in
> @@ -689,6 +689,8 @@ sub find_file
> my $use_path = shift;
> local $_;
>
> + return $input if File::Spec->file_name_is_absolute($input) and -f $input;
Do you really need to use file_name_is_absolute? -f seems to work fine
also with absolute paths. In case the path is relative, -f will be fine
too, as...
> my @search...
2020 Jan 27
5
[PATCH 0/3] Fixing out-of-tree builds
Building virt-v2v out-of-tree does not work and requires several small fixes
here and there.
Tomáš Golembiovský (3):
build: perform gnulib check from source directory
build: run ocaml-link.sh from build directory
docs: don't perform lookup on absolute paths
cfg.mk | 1 +
podwrapper.pl.in | 2 ++
v2v/Makefile.am | 16 ++++++++--------
3 files changed, 11 insertions(+), 8
2019 Dec 11
2
[PATCH 1/2] podcheck: __INCLUDE:file.pod__ and __VERBATIM:file.txt__ in POD files.
...uot;verbatim=s" => \@verbatims,
) or pod2usage (2);
pod2usage (1) if $help;
@@ -117,6 +127,10 @@ foreach (@inserts) {
if $content eq $oldcontent;
}
+# Perform INCLUDE directives.
+$content =~ s{__INCLUDE:([-a-z0-9_]+\.pod)__}
+ {read_whole_file ("$1", use_path => 1)}ge;
+
# Perform @verbatims.
foreach (@verbatims) {
my @a = split /:/, $_, 2;
@@ -128,6 +142,10 @@ foreach (@verbatims) {
if $content eq $oldcontent;
}
+# Perform VERBATIM directives.
+$content =~ s{__VERBATIM:([-a-z0-9_]+\.txt)__}
+ {read_verbatim_file ("...
2020 Jan 27
0
[PATCH 3/3] docs: don't perform lookup on absolute paths
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
podwrapper.pl.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/podwrapper.pl.in b/podwrapper.pl.in
index f12a173f..1e4aa149 100755
--- a/podwrapper.pl.in
+++ b/podwrapper.pl.in
@@ -689,6 +689,8 @@ sub find_file
my $use_path = shift;
local $_;
+ return $input if File::Spec->file_name_is_absolute($input) and -f $input;
+
my @search_path = (".");
push (@search_path, @paths) if $use_path;
foreach (@search_path) {
--
2.25.0
2020 Jan 27
0
Re: [PATCH 3/3] docs: don't perform lookup on absolute paths
...er.pl.in | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/podwrapper.pl.in b/podwrapper.pl.in
> > index f12a173f..1e4aa149 100755
> > --- a/podwrapper.pl.in
> > +++ b/podwrapper.pl.in
> > @@ -689,6 +689,8 @@ sub find_file
> > my $use_path = shift;
> > local $_;
> >
> > + return $input if File::Spec->file_name_is_absolute($input) and -f $input;
>
> Do you really need to use file_name_is_absolute? -f seems to work fine
> also with absolute paths. In case the path is relative, -f will be fine
&g...
2020 Jan 27
1
Re: [PATCH 3/3] docs: don't perform lookup on absolute paths
...hanged, 2 insertions(+)
> > >
> > > diff --git a/podwrapper.pl.in b/podwrapper.pl.in
> > > index f12a173f..1e4aa149 100755
> > > --- a/podwrapper.pl.in
> > > +++ b/podwrapper.pl.in
> > > @@ -689,6 +689,8 @@ sub find_file
> > > my $use_path = shift;
> > > local $_;
> > >
> > > + return $input if File::Spec->file_name_is_absolute($input) and -f $input;
> >
> > Do you really need to use file_name_is_absolute? -f seems to work fine
> > also with absolute paths. In case the path i...
2019 Nov 28
4
[PATCH v2 0/3] options: Describe --key SELECTOR in a single file.
v1 was here:
https://www.redhat.com/archives/libguestfs/2019-November/msg00271.html
In v2 I just updated the way paths are handled.
Note this series requires the following patch to common which adds the
common/options/key-option.pod file:
https://www.redhat.com/archives/libguestfs/2019-November/msg00269.html
Rich.