incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shaposhnik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BIGTOP-84) Package removal fails in case alternatives are deleted or damaged
Date Wed, 07 Sep 2011 19:47:10 GMT

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

Roman Shaposhnik commented on BIGTOP-84:
----------------------------------------

I'm inclined to fix this by disregarding the exit code from the alternatives command. Something
along the lines of:

alternatives --remove XXXX || true

Please let me know if there are any objections to it

> Package removal fails in case alternatives are deleted or damaged
> -----------------------------------------------------------------
>
>                 Key: BIGTOP-84
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-84
>             Project: Bigtop
>          Issue Type: Bug
>          Components: Debian, RPM
>    Affects Versions: 0.1.0
>            Reporter: Roman Shaposhnik
>            Assignee: Roman Shaposhnik
>             Fix For: 0.2.0
>
>
> Quite a few of our packages use alternatives --remove mta in there pre-unistall steps.
This works fine for as long as the alternative is there and is not damaged, but prevents package
removal in any other case:
> # rpm -e hadoop-hive
> ....
> error: %preun(hadoop-hive-0.7.1+42.4-2.noarch) scriptlet failed, exit status 2

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message