[Libguestfs] [PATCH 5/5] ubuntu: Remove '*:i386' (multiarch?) packages.

Hilko Bengen bengen at hilluzination.de
Thu Oct 20 12:46:17 UTC 2011


* Richard W.M. Jones:

> --- a/src/febootstrap_debian.ml
> +++ b/src/febootstrap_debian.ml
> @@ -45,7 +45,7 @@ let get_installed_pkgs () =
>  
>  let rec debian_resolve_dependencies_and_download names =
>    let cmd =
> -    sprintf "%s depends --recurse -i %s | grep -v '^[<[:space:]]'"
> +    sprintf "%s depends --recurse -i %s | grep -v '^[<[:space:]]' | grep -v :i386"
>        Config.apt_cache
>        (String.concat " " (List.map Filename.quote names)) in
>    let pkgs = run_command_get_lines cmd in

This will only work on multiarch setups where i386 is the only secondary
architecture which may become relevant for Debian.

I suggest using:

    grep -Ev ':\w+\b' 

Cheers,
-Hilko




More information about the Libguestfs mailing list