Re: [jenkins-ci PATCH v2 5/9] lcitool: force non-interactive apt-get frontend

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

 



On Tue, 2019-02-05 at 17:53 +0000, Daniel P. Berrangé wrote:
[...]
>          if package_format == "deb":
>              sys.stdout.write(textwrap.dedent("""
> -                RUN apt-get update && \\
> -                    apt-get dist-upgrade -y && \\
> -                    apt-get install -y ${PACKAGES} && \\
> -                    apt-get autoremove -y && \\
> -                    apt-get autoclean -y
> +                RUN DEBIAN_FRONTEND=noninteractive && \\
> +                    ( \\
> +                        apt-get update && \\
> +                        apt-get dist-upgrade -y && \\
> +                        apt-get install -y ${PACKAGES} && \\
> +                        apt-get autoremove -y && \\
> +                        apt-get autoclean -y \\
> +                    )

Wouldn't

  RUN export DEBIAN_FRONTEND=noninteractive && \\
      apt-get update && \\
      ...

work as well, without requiring the extra indentation (and shell)?

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux