On 8/2/11 1:34 AM, Nathan wrote:
Hello,
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
pulp-common-0.0.206-2.el6.noarch
pulp-client-0.0.206-2.el6.noarch
pulp-0.0.206-2.el6.noarch
Thanks
Nathan
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
else:
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
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list