rpm-python source code

Hans Christian Studt hcstudt at post10.tele.dk
Mon Apr 26 15:20:42 UTC 2004


Hi,

I am trying to trace down a problem where YUM only install 1 of 475 packages.

It seems that the problem is i a library functions called by YUM.

YUM never returns from "errors = tsfin.run(cb.callback, '')".

The following code-piece is from yummain.py
-------------------------------------------
    # FIXME the actual run should probably be elsewhere and this should be
    # inside a try, except set
    tsfin = clientStuff.create_final_ts(tsInfo)

    if conf.diskspacecheck == 0:
        tsfin.setProbFilter(rpm.RPMPROB_FILTER_DISKSPACE)

    if conf.uid == 0:
        # sigh - the magical "order" command - nice of this not to really be
        # documented anywhere.
        tsfin.check()
        tsfin.order()
        print _('#DEB# 04710 before callback.RPMInstallCallback()')
        cb = callback.RPMInstallCallback()
        print _('#DEB# 04720 after  callback.RPMInstallCallback()')
        print _("#DEB# 04810 before errors = tsfin.run(cb.callback, '')")

        try:
            errors = tsfin.run(cb.callback, '')
        except RunError:
            print _("#DEB# 04840 except '%s'") % (RunError)

        print _("#DEB# 04890 after  errors = tsfin.run(cb.callback, '')")
-------------------------------------------

Trace output
-------------------------------------------
#DEB# 00420 after  checkts.run(cb.callback, '')
#DEB# 03720 after  clientStuff.tsTest(tstest)
Test transaction complete, Success!
#DEB# 04710 before callback.RPMInstallCallback()
#DEB# 110 RPMInstallCallback __init__(self)
#DEB# 04720 after  callback.RPMInstallCallback()
#DEB# 04810 before errors = tsfin.run(cb.callback, '')
/etc/security/selinux/file_contexts: Ingen sådan fil eller filkatalog
#DEB# 210 callback(self, 32, 6, 475, ) 1000
#DEB# 210 callback(self, 16, 0, 475, ) 1000
#DEB# 210 callback(self, 16, 1, 475, ) 1000
:
:
:
#DEB# 210 callback(self, 16, 473, 475, ) 1000
#DEB# 210 callback(self, 16, 474, 475, ) 1000
#DEB# 210 callback(self, 64, 6, 475, ) 1000
#DEB# 210 callback(self, 4, 0, 0, ) 1000
#DEB# 230 before os.open()
#DEB# 240 after  os.open()
#DEB# 210 callback(self, 2, 0, 133096, ) 1000
#DEB# 210 callback(self, 1, 59340, 133096, ) 1000
libselinux 44 % done 1/475#DEB#
#DEB# 210 callback(self, 1, 63060, 133096, ) 1000
libselinux 47 % done 1/475#DEB#
:
:
:
#DEB# 210 callback(self, 1, 132500, 133096, ) 1000
libselinux 99 % done 1/475#DEB#
#DEB# 210 callback(self, 1, 132969, 133096, ) 1000
libselinux 99 % done 1/475#DEB#
#DEB# 210 callback(self, 1, 133096, 133096, ) 1000
libselinux 100 % done 1/475
#DEB#
-------------------------------------------
Back to bash-prompt

Question
1 Which package/libary is calling the callback function ?
2 How do I get the source to that package/libary ?

Mvh Hans Christian Studt
Private +45 48 79 79 89
Mobile +45 29 23 54 14
Business +45 36 14 54 14
mailto:hc at studt.dk http://hc.studt.dk
Powered by Linux 2.6.1-1.65





More information about the fedora-test-list mailing list