Re: confsued at behaviour of 'yum install/update' command

Robinson Tiemuqinke <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
That's my 'quick and dirty' patch to automatically upgrade dependency packages when there is an installation/upgrade operation happens.  -- The basic idea is to patch the _checkInstall function to add dependency packages when there is a new version in repo(s).

Could anyone have a look and comment on it? Thanks.

[root@www test]# diff -c /usr/lib/python2.4/site-packages/yum/depsolve.py_DIST /usr/lib/python2.4/site-packages/yum/depsolve.py
*** /usr/lib/python2.4/site-packages/yum/depsolve.py_DIST       2009-01-22 02:53:44.000000000 -0800
--- /usr/lib/python2.4/site-packages/yum/depsolve.py    2009-08-03 14:45:40.000000000 -0700
***************
*** 844,849 ****
--- 844,853 ----
                  continue
              if req in txmbr_provs:
                  continue
+             for upentry in self.up.updating_dict.keys():
+                 if req[0] == upentry[0]:
+                    ret.append( (txmbr.po, self._prco_req2req(req)) )
+                    continue
              if req in oldreqs and self.rpmdb.getProvides(*req):
                  continue
              
[root@www test]# 

--Robinson



________________________________
From: Robinson Tiemuqinke <[email protected]>
To: "Yellowdog Updater, Modified" <[email protected]>
Sent: Friday, July 31, 2009 4:50:51 PM
Subject: Re: [Yum] confsued at behaviour of 'yum install/update' command


Output is in attached file. Have a nice weekend.

--Guolin




________________________________
From: Robinson Tiemuqinke <[email protected]>
To: [email protected]
Sent: Friday, July 31, 2009 4:12:01 PM
Subject: [Yum] confsued at behaviour of 'yum install/update' command


Hi, all,

 These days I got confused at the 'yum install' and 'yum update' commands. The problem is described below:

 Suppose there have been three packages: pkgA, pkgB, pkgC. Package pkgA depends on pkgB and pkgB depends on pkgC.

 When 'yum install pkgA' runned at the first time, yum found and installed all three packages, pkgA and pkgB and pkgC at their newest version.

 Then after some time, when all three packages have newer versions built, and 'yum update pkgA' command is carried out, only pkgA itself is updated to newest version, while pkgB and pkgC is still at old version untouched. 

'yum install pkgA' and 'yum upgrade pkgA' have no effects neither.

 Any one can shed a light on this problem? Is there an option to turn on depending upgrade(pkgB), or even recursive dependency upgrade(pkgC)? Thanks a lot.

Have a nice weekend.

--Robinson  

_______________________________________________
Yum mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.