[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] removing a package from a repo error

On 8/2/11 1:34 AM, Nathan wrote:

I am trying to remove a package from a repo. And am getting the following error?

# pulp-admin repo remove_package --id=el5-x86_64-test -p htop.el5.noarch.rpm
error: operation failed: AttributeError: DepSolver instance has no attribute '_override_sigchecks'

I know the package exists in the repo.

versions (rhel6):
# rpm -qa | grep pulp


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.

Here is the patch in the mean time that should fix this issue:

$ diff -u /tmp/repos.py /usr/lib/python2.7/site-packages/yum/repos.py
--- /tmp/repos.py    2011-08-02 09:26:25.510248023 -0400
+++ /usr/lib/python2.7/site-packages/yum/repos.py    2011-07-29 17:15:31.000000000 -0400
@@ -110,7 +110,12 @@
             repoobj.quick_enable_disable = self.quick_enable_disable
             self._cache_enabled_repos = None
-        repoobj._override_sigchecks = self.ayum._override_sigchecks
+        #  At least pulp reuses RepoStorage but doesn't have a "real" YumBase()
+        # so we can't guarantee new YumBase() attrs. exist.
+        if not hasattr(self.ayum, '_override_sigchecks'):
+            repoobj._override_sigchecks = False
+        else:
+            repoobj._override_sigchecks = self.ayum._override_sigchecks
     def delete(self, repoid):
         if repoid in self.repos:

Hope this helps,

~ Prad

Pulp-list mailing list
Pulp-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]