code: def add(self, component):
          
  
          # if already exists, just add the release objects
          old = self.get_component(component.id)
          if old:
              old.releases.extend(component.releases)
              return
          self.components[component.id] = component
docs: Add component to the store