[Libguestfs] distro checking

Richard W.M. Jones rjones at redhat.com
Mon Dec 3 22:09:27 UTC 2012


On Mon, Dec 03, 2012 at 08:36:50PM +0200, Evaggelos Balaskas wrote:
> NOT a problem,
> 
> just a question about distro checking:
> 
> the default value is REDHAT,
> then you check debian (or ubuntu)
> and then archlinux
> 
> why are you using two if statements ?

It is only used here:

https://github.com/libguestfs/libguestfs/blob/master/appliance/packagelist.in

It's not a great solution TBH, but no one's come up with a better way :-)

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora




More information about the Libguestfs mailing list