On Mon, 2013-02-11 at 17:50 +0530, malisetti rammurthy wrote:
> Hi Team,
> 
> I am trying to write a python wrapper on top of Yum python API. Presently i
> am able to get the dependencies list available for a package. Here the
> package i am providing is an update package that is available for
> installation using yum (chkconfig-1.3.49.3-2.el6.x86_64).  For this package
> i am getting the following list as the dependencies
> ['glibc-2.12-1.80.el6_3.7', 'popt-1.13-7.el6'].
> 
> But actually, the above list is equivalent for this command "yum deplist
> chkconfig-1.3.49.3-2.el6.x86_64". But this command "yum update
> chkconfig-1.3.49.3-2.el6.x86_64" is giving a different output with this
> package (ntsysv-1.3.49.3-2.el6) included.

 This is due to "ntsysv" having a Requires on a specific version of
chkconfig (because they are really one package, just that you can opt to
not install the ntsysv part).

> Following is my code for getting the dependencies for a package provided:
[...]
> Can you please help me in getting the dependencies list similar to "yum
> update pkg-name".

 The only way to see exactly what will happen is to run an update and do
a depsolve, apart from things like the above "prco" changes yum can also
do different things based on configurations like
recheck_installed_requires=true.

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to