[Libguestfs] [supermin 2/3] Add file.source_path, no functional changes

Richard W.M. Jones rjones at redhat.com
Thu Mar 13 21:35:43 UTC 2014


On Mon, Mar 10, 2014 at 11:33:50AM +0100, Hilko Bengen wrote:
> diff --git a/src/dpkg.ml b/src/dpkg.ml
> index c28354a..5a650b8 100644
> --- a/src/dpkg.ml
> +++ b/src/dpkg.ml
> @@ -166,7 +166,8 @@ let dpkg_get_all_files pkgs =
>        let config =
>  	try string_prefix "/etc/" path && (lstat path).st_kind = S_REG
>  	with Unix_error _ -> false in
> -      { ft_path = path; ft_config = config }
> +      let cmd = sprintf "%s --truename %s" Config.dpkg_divert path in
> +      { ft_path = path; ft_source_path = path; ft_config = config }

There must be a mistake here because this always sets ft_source_path =
ft_path = path.  Not sure why the compiler didn't warn that cmd is
unused.

Is there a new version of the complete patch series?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list