Bigtop
  1. Bigtop
  2. BIGTOP-84

Package removal fails in case alternatives are deleted or damaged

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.1.0
    • Fix Version/s: 0.2.0
    • Component/s: debian, rpm
    • Labels:
      None

      Description

      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:

      1. rpm -e hadoop-hive
        ....
        error: %preun(hadoop-hive-0.7.1+42.4-2.noarch) scriptlet failed, exit status 2
      1. BIGTOP-84.patch.txt
        8 kB
        Roman Shaposhnik

        Activity

        Roman Shaposhnik created issue -
        Hide
        Roman Shaposhnik added a comment -

        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

        Show
        Roman Shaposhnik added a comment - 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
        Roman Shaposhnik made changes -
        Field Original Value New Value
        Attachment BIGTOP-84.patch.txt [ 12494313 ]
        Roman Shaposhnik made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Andrew Bayer added a comment -

        +1

        Show
        Andrew Bayer added a comment - +1
        Roman Shaposhnik made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12631633 ] patch-available, re-open possible [ 12666150 ]
        Roman Shaposhnik made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        6d 1h 8m 1 Roman Shaposhnik 13/Sep/11 21:52
        Patch Available Patch Available Resolved Resolved
        1d 1h 29m 1 Roman Shaposhnik 14/Sep/11 23:22
        Resolved Resolved Closed Closed
        285d 17h 35m 1 Roman Shaposhnik 26/Jun/12 16:57

          People

          • Assignee:
            Roman Shaposhnik
            Reporter:
            Roman Shaposhnik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development