Mailinglist Archive: zypp-devel (78 mails)
| < Previous | Next > |
Re: [zypp-devel] Auto selectables
- From: Katarina Machalkova <kmachalkova@xxxxxxx>
- Date: Fri, 30 Nov 2007 16:52:05 +0100
- Message-id: <200711301652.13103.kmachalkova@xxxxxxx>
Dne Thursday 29 November 2007 02:45:05 Ricardo Cruz napsal(a):
I use this code in ncurses PM:
ZyppPoolIterator
b = zyppPkgBegin(),
e = zyppPkgEnd(),
it;
for (it = b; it != e; ++it)
{
zypp::ui::Selectable::Ptr slb = *it;
// show all packages which are automatically selected for installation
if ( slb->toModify() && slb->modifiedBy () != zypp::ResStatus::USER )
....
}
implicitely assuming that if the packages were not modified by user, it must
have been solver who changed their status...
But don't know if it's correct and optimal solution, after all, I'm not a zypp
developer
B.
--
\\\\\ Katarina Machalkova
\\\\\\\__o YaST developer
__\\\\\\\'/_ & hedgehog painter
Hi,
Any direct way to know the packages that the resolver has modified?
Iterating the pool looking for packages with the Auto status should be
good enough for what I want, but just wondering there.
I use this code in ncurses PM:
ZyppPoolIterator
b = zyppPkgBegin(),
e = zyppPkgEnd(),
it;
for (it = b; it != e; ++it)
{
zypp::ui::Selectable::Ptr slb = *it;
// show all packages which are automatically selected for installation
if ( slb->toModify() && slb->modifiedBy () != zypp::ResStatus::USER )
....
}
implicitely assuming that if the packages were not modified by user, it must
have been solver who changed their status...
But don't know if it's correct and optimal solution, after all, I'm not a zypp
developer
B.
--
\\\\\ Katarina Machalkova
\\\\\\\__o YaST developer
__\\\\\\\'/_ & hedgehog painter
| < Previous | Next > |