[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] febootstrap and download packages



On Fri, Dec 21, 2012 at 09:16:41PM +0200, Evaggelos Balaskas wrote:
> Thats fine - that was the approach i was going too but i couldnt think
> how to implement this.
> Thanks for the acknowledge on github.
> 
> I would like to discuss one more thing:
> 
> If pacman_config file doesnt exist then exit status of Sys.command cmd is 1
> and febootstrap is trying to find this package from aur.
> 
> eg.
> $ sudo pacman --config /etc/pacman.conf2 -Sw rsync ; echo $?
> error: config file /etc/pacman.conf2 could not be read.
> 1
> 
> a fallback mechanism could be this:
> 
> (match pacman_config with
>  | None -> ""
>  | Some filename when Sys.file_exists filename -> " --config " ^ filename
>  | _ -> ""
> )
> 
> (learning ocaml through febootstrap !)
> 
> I am not sure what the user experience should be on that.
> Whats the approach on yum plugin, if the yum config doesnt exist ?

Isn't it an error if the file that the user supplies via the
--pacman-config parameter is non-existent?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]