[Yum-devel] [RFC] Add skipped packages to transaction summary

seth vidal skvidal at fedoraproject.org
Tue Feb 12 01:01:50 UTC 2008


On Mon, 2008-02-11 at 19:42 -0500, James Bowes wrote:
> Hi all:
> 
> The attached patch adds skip-broken output to the yum cli's summary bit,
> like so:
> 
> =============================================================================
>  Package                 Arch       Version          Repository        Size 
> =============================================================================
> Updating:
>  openbox-libs            x86_64     3.4.5-1.fc8      updates            45 k
> Skipped:
>  frobnitz                x86_64     0.0.1            badrepo           165 k
>  frobnitz-libs           x86_64     0.0.1            badrepo           100 k
>  libdc1394               x86_64     2.0.1-3.fc8      updates           111 k
> 
> Transaction Summary
> =============================================================================
> Install      0 Package(s)         
> Update       1 Package(s)         
> Remove       0 Package(s)         
> 
> So, I didn't add a count of skipped packages at the end, but that might be nice
> to show when some packages are actually skipped, or if skip-broken is enabled
> (rather than all the time).
> 
> The code itself puts the skipped packages into the transaction info in a new
> 'skipped' array. While not used by rpm proper, this feels like a good place for
> it to be.
> 
> What does everyone think?

Does it play hell if I do something like:

my = yum.YumBase()
my.install(foo)
... magic-here ...
if len(my.tsInfo) > 0:
    my.runTransaction(...)


>From a quick glance at the patch it will cause problems there.

maybe we should make sure skipped packages don't append to the count.
-sv





More information about the Yum-devel mailing list