[Yum-devel] yum buildTrascation

Janardhan Molumuri mjanardhan at gmail.com
Mon Nov 21 12:25:47 UTC 2011


I am trying to run depresolve (dependency resolution check) on a newly
created yum repo using yum.yumBase.buildTransaction() but the result is a
empty transcation. Any ideas on this? I don't find good documentation on
these methods, if you have any please do point me.


snippet:
    my.repos.disableRepo("*")

    newrepo = yum.yumRepo.YumRepository(repoid)
    newrepo.name = repoid
    newrepo.baseurl = [url]
    newrepo.basecachedir = my.conf.cachedir
    newrepo.metadata_expire = 0
    newrepo.timestamp_check = False
    newrepo.enablegroups = 1
    # we want *all* metadata
    newrepo.mdpolicy = 'group:all'

    # add our new repo
    my.repos.add(newrepo)
    # enable that repo
    my.repos.enableRepo(repoid)
    # setup the repo dirs/etc
    my.doRepoSetup(thisrepo=repoid)

    (code, msgs) = my.buildTransaction(unfinished_transactions_check=False)


    print "ecode",code
    print "\n".join(msgs)

<>
Success - empty transaction
</>



-- 
-- JNR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20111121/74ccfc9e/attachment.html>


More information about the Yum-devel mailing list