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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <hahaha_30k@xxxxxxxxx>
To: "Yellowdog Updater, Modified" <yum@xxxxxxxxxxxxxxxxx>
Sent: Friday, July 31, 2009 4:50:51 PM
Subject: Re: confsued at behaviour of 'yum install/update' command

Output is in attached file. Have a nice weekend.
 
--Guolin


From: Robinson Tiemuqinke <hahaha_30k@xxxxxxxxx>
To: yum@xxxxxxxxxxxxxxxxx
Sent: Friday, July 31, 2009 4:12:01 PM
Subject: 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
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux