You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Roman Shaposhnik (JIRA)" <ji...@apache.org> on 2011/09/07 21:45:09 UTC

[jira] [Created] (BIGTOP-84) Package removal fails in case alternatives are deleted or damaged

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

        

[jira] [Updated] (BIGTOP-84) Package removal fails in case alternatives are deleted or damaged

Posted by "Roman Shaposhnik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BIGTOP-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roman Shaposhnik updated BIGTOP-84:
-----------------------------------

    Attachment: BIGTOP-84.patch.txt

> 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
>
>         Attachments: BIGTOP-84.patch.txt
>
>
> 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

        

[jira] [Commented] (BIGTOP-84) Package removal fails in case alternatives are deleted or damaged

Posted by "Andrew Bayer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BIGTOP-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103987#comment-13103987 ] 

Andrew Bayer commented on BIGTOP-84:
------------------------------------

+1

> 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
>
>         Attachments: BIGTOP-84.patch.txt
>
>
> 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

        

[jira] [Commented] (BIGTOP-84) Package removal fails in case alternatives are deleted or damaged

Posted by "Roman Shaposhnik (JIRA)" <ji...@apache.org>.
    [ 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