Mailinglist Archive: zypp-devel (92 mails)
| < Previous | Next > |
Re: [zypp-devel] Deprecated Pattern::install_packages() ?
- From: Katarina Machalkova <kmachalkova@xxxxxxx>
- Date: Fri, 24 Aug 2007 15:16:05 +0200
- Message-id: <200708241516.05334.kmachalkova@xxxxxxx>
> So we have two cases how we look onto patterns in the QT-UI:
>
> Case 1:The user select a pattern ( do not select for
> installation/deletion):
>
> On the right side packages will be shown which has to ANYTHING with that
> pattern.
Right (PatternContents() and friends)
> Case 2:The user install a pattern:
> The user wants to see which packages will be definetely installed. In
> that case
> we make a complete solverrun. The result is completely independent from
> Case 1.
No, it does not work that way. The list of packages user sees in the right
panel is the same as in Case 1. Yes, we make complete solver run, and yes,
dependent packages/patterns are marked for installation/update/deletion, but
the list of 'related packages' in the right panel remains the same. The
*only* difference is that their status changes.
The user never sees the complete list of packages that will be installed once
he/she selects a pattern in the right panel
So the resulting list is obtained via PatternContent::install_packages() in
both cases.
The output of ncurses UI is identical - either you 'select' the pattern from
the popup list, press 'OK' and see related pkgs in the main table (case 1),
or you mark pattern for installation in the popup list (case 2), press 'OK'
and see exactly the same list, only with updated status of the pkgs.
> So, Katerina which kind of view do you need ?
Ideally, I would need both :) because as I described above, current behaviour
is a bit buggy as we get the same list in both cases (1 and 2) where we
should get two different ones.
B.
--
\\\\\ Katarina Machalkova
\\\\\\\__o YaST developer
__\\\\\\\'/_ & hedgehog painter
>
> Case 1:The user select a pattern ( do not select for
> installation/deletion):
>
> On the right side packages will be shown which has to ANYTHING with that
> pattern.
Right (PatternContents() and friends)
> Case 2:The user install a pattern:
> The user wants to see which packages will be definetely installed. In
> that case
> we make a complete solverrun. The result is completely independent from
> Case 1.
No, it does not work that way. The list of packages user sees in the right
panel is the same as in Case 1. Yes, we make complete solver run, and yes,
dependent packages/patterns are marked for installation/update/deletion, but
the list of 'related packages' in the right panel remains the same. The
*only* difference is that their status changes.
The user never sees the complete list of packages that will be installed once
he/she selects a pattern in the right panel
So the resulting list is obtained via PatternContent::install_packages() in
both cases.
The output of ncurses UI is identical - either you 'select' the pattern from
the popup list, press 'OK' and see related pkgs in the main table (case 1),
or you mark pattern for installation in the popup list (case 2), press 'OK'
and see exactly the same list, only with updated status of the pkgs.
> So, Katerina which kind of view do you need ?
Ideally, I would need both :) because as I described above, current behaviour
is a bit buggy as we get the same list in both cases (1 and 2) where we
should get two different ones.
B.
--
\\\\\ Katarina Machalkova
\\\\\\\__o YaST developer
__\\\\\\\'/_ & hedgehog painter
| < Previous | Next > |