<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 8/2/11 1:34 AM, Nathan wrote:
    <blockquote
cite="mid:CAKjcWvQUOU2NCGSuDHN_gOfqhanp9VSGOx42YTGTqLVn4qamRQ@mail.gmail.com"
      type="cite">Hello,<br>
      <br>
      I am trying to remove a package from a repo. And am getting the
      following error?<br>
      <br>
      # pulp-admin repo remove_package --id=el5-x86_64-test -p
      htop.el5.noarch.rpm<br>
      error: operation failed: AttributeError: DepSolver instance has no
      attribute '_override_sigchecks'<br>
      <br>
      I know the package exists in the repo.<br>
      <br>
      versions (rhel6):<br>
      # rpm -qa | grep pulp<br>
      pulp-common-0.0.206-2.el6.noarch<br>
      pulp-client-0.0.206-2.el6.noarch<br>
      pulp-0.0.206-2.el6.noarch<br>
      <br>
      Thanks <br>
      Nathan<br>
    </blockquote>
    <br>
    Yes this was an issue in newer versions of yum in f15. I'm actually
    a bit surprised you're seeing it on el6 as I thought el6 dint have
    these changes. May be it got in 6.1. Either way, this has been fixed
    in f15, I'll check and see when its planned to be ported to RHEL-6.<br>
    <br>
    Here is the patch in the mean time that should fix this issue:<br>
    <br>
    $ diff -u /tmp/repos.py
    /usr/lib/python2.7/site-packages/yum/repos.py <br>
    --- /tmp/repos.py    2011-08-02 09:26:25.510248023 -0400<br>
    +++ /usr/lib/python2.7/site-packages/yum/repos.py    2011-07-29
    17:15:31.000000000 -0400<br>
    @@ -110,7 +110,12 @@<br>
                 repoobj.quick_enable_disable =
    self.quick_enable_disable<br>
             else:<br>
                 self._cache_enabled_repos = None<br>
    -        repoobj._override_sigchecks = self.ayum._override_sigchecks<br>
    +        #  At least pulp reuses RepoStorage but doesn't have a
    "real" YumBase()<br>
    +        # so we can't guarantee new YumBase() attrs. exist.<br>
    +        if not hasattr(self.ayum, '_override_sigchecks'):<br>
    +            repoobj._override_sigchecks = False<br>
    +        else:<br>
    +            repoobj._override_sigchecks =
    self.ayum._override_sigchecks<br>
     <br>
         def delete(self, repoid):<br>
             if repoid in self.repos:<br>
    <br>
    <br>
    Hope this helps,<br>
    <br>
    ~ Prad<br>
    <blockquote
cite="mid:CAKjcWvQUOU2NCGSuDHN_gOfqhanp9VSGOx42YTGTqLVn4qamRQ@mail.gmail.com"
      type="cite">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Pulp-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pulp-list@redhat.com">Pulp-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/pulp-list">https://www.redhat.com/mailman/listinfo/pulp-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>