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

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



* 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


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