updatecenter2
  1. updatecenter2
  2. UPDATECENTER2-2026

handle package being deleted as part of update

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: B146
    • Component/s: updatetool
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      2,026

      Description

      With the introduction of obsolete packages, it is possible for a package to be
      removed as part of an image update. The python2.4-minimal package is now
      obsolete so this is a real case for updatetool.

      This causes a problem for updatetool in the listers.py module in that it assumes
      that if a pkgplan as an origin FMRI, it is going to have a destination FMRI as
      well.

        Activity

        Hide
        Tom Mueller added a comment -

        We need to fix this in B45 because without this change, we cannot upgrade to B45
        using updatetool. Actually, we are going to have to backout the change that
        makes python2.4-minimal obsolete until this change is in.

        Show
        Tom Mueller added a comment - We need to fix this in B45 because without this change, we cannot upgrade to B45 using updatetool. Actually, we are going to have to backout the change that makes python2.4-minimal obsolete until this change is in.
        Hide
        Tom Mueller added a comment -

        Question: how should we present an update to the user that removes a package? We
        currently do not list a package as an "update" in the updates panel if it is
        being installed for the first time due to an update bringing in a new
        dependency. What about a package being removed - should it just not be listed
        either.

        Then, should the removed package be listed in the confirmation dialog that is
        displayed after the user clicks install?

        Show
        Tom Mueller added a comment - Question: how should we present an update to the user that removes a package? We currently do not list a package as an "update" in the updates panel if it is being installed for the first time due to an update bringing in a new dependency. What about a package being removed - should it just not be listed either. Then, should the removed package be listed in the confirmation dialog that is displayed after the user clicks install?
        Hide
        Tom Mueller added a comment -

        The traceback for this problem is:

        Traceback (innermost last):
        File
        "/export/home/trm/pkg-toolkit/updatetool/vendor-packages/updatetool/common/listers.py",
        line 468, in run
        ((not new_fmri.has_publisher() or new_fmri.preferred_publisher()) and
        preferred in remote):
        AttributeError: 'NoneType' object has no attribute 'has_publisher'

        Here, "new_fmri" is None because the old package is being deleted.

        Show
        Tom Mueller added a comment - The traceback for this problem is: Traceback (innermost last): File "/export/home/trm/pkg-toolkit/updatetool/vendor-packages/updatetool/common/listers.py", line 468, in run ((not new_fmri.has_publisher() or new_fmri.preferred_publisher()) and preferred in remote): AttributeError: 'NoneType' object has no attribute 'has_publisher' Here, "new_fmri" is None because the old package is being deleted.
        Hide
        mnsingh added a comment -

        As discussed with Team.

        Show
        mnsingh added a comment - As discussed with Team.
        Hide
        Tom Mueller added a comment -
            • Issue 2027 has been marked as a duplicate of this issue. ***
        Show
        Tom Mueller added a comment - Issue 2027 has been marked as a duplicate of this issue. ***

          People

          • Assignee:
            mnsingh
            Reporter:
            Tom Mueller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: