[Revisor-users] Add RPM package problem in 2.0.3.11

huimengzhan 02704 huimengzhan at h3c.com
Wed Jun 27 14:15:57 UTC 2007


> Revisor in this aspect behaves exactly the same as yum. That is because
> Revisor uses yum for all these actions.
> Could you set the debuglevel in
> /etc/revisor/conf.d/revisor-fc6-x86_64.conf to 9 maybe, and send us a
> logfile?
> From the command prompt, run revisor with:

> sudo /usr/sbin/revisor --debug > /tmp/revisor.log 2>&1

Thank you very much for your reply.

I carefully TRACE the all progrom,and find some clue:
first,the error info happened in the /usr/lib/python2.5/site-packages/revisor/base.py,here
def download_packages(self)
probs=self.cfg.yumobj.downloadPkgs(dlpkgs,dlCb)

and downloadPkgs is actually is in
/usr/lib/python2.5/site-packages/yum/__init__.py
downloadPkgs(self,pkglist,callback=None)
i added some print before 
mylocal = po.repo.getPackage(po,
                                   checkfunc=checkfunc,
                                   text=text,
                                   cache=po.repo.http_caching != 'none',
                                   )
and found if it's my helloworld, then 
print po.basepath is "None"
if it's other pkg,then
print po.basepath is "media://1161132068.269978#1"
i think it's the error reason,but i'm not sure.

It's surprised that i using /etc/revisor/conf.d/revisor-fc6-x86_64.conf as yum conf file
(mv /etc/revisor/conf.d/revisor-fc6-x86_64.conf /etc/yum.repos.d/fedora.repo, certainly delete some [main] lines),and it's works well.

I will debug carefully following your guide tomorrow.

BTW,how can i reply a thread instead of create a new thread?




More information about the Revisor-users mailing list