You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Mark Grover (JIRA)" <ji...@apache.org> on 2013/07/20 00:14:47 UTC

[jira] [Commented] (BIGTOP-1033) itest-common: fix debian install to avoid conffile prompt

    [ https://issues.apache.org/jira/browse/BIGTOP-1033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13714147#comment-13714147 ] 

Mark Grover commented on BIGTOP-1033:
-------------------------------------

[~wypoon] Thanks for the patch. While this looks good to me, may I request you to attach a patch created using {{git format-patch instead}}, please?
                
> itest-common: fix debian install to avoid conffile prompt
> ---------------------------------------------------------
>
>                 Key: BIGTOP-1033
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1033
>             Project: Bigtop
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.6.0
>            Reporter: Wing Yew Poon
>            Assignee: Wing Yew Poon
>             Fix For: 0.7.0
>
>         Attachments: BIGTOP-1033.diff
>
>
> This issue pertains to bigtop-test-framework, not bigtop-tests.
> When running the package tests, specifically upgrade tests, on debian platforms, doing "env DEBIAN_FRONTEND=noninteractive apt-get -y install ${pkg.name}" is not enough. dpkg will prompt you as to what to do about conf files that have been modified, and the tests will fail because they don't respond to the prompts.
> According to http://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/, you can use --force-conf* options; in particular
> --force-confold: do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix. With this option alone, even configuration files that you have not modified are left untouched. You need to combine it with --force-confdef to let dpkg overwrite configuration files that you have not modified.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira