Bug 498441 - Removing a package from the a channel in the UI doesn't update repo cache
Summary: Removing a package from the a channel in the UI doesn't update repo cache
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Jeff Ortel
URL:
Whiteboard:
Depends On:
Blocks: space06 498506
TreeView+ depends on / blocked
 
Reported: 2009-04-30 14:20 UTC by Justin Sherrill
Modified: 2009-09-10 12:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 498506 (view as bug list)
Environment:
Last Closed: 2009-09-10 12:06:05 UTC
Embargoed:


Attachments (Terms of Use)

Description Justin Sherrill 2009-04-30 14:20:47 UTC
When you remove a package from a channel, the new repocache mechanism is never signalled to regenerate the yum cache.  

We should probably add this in ChannelManager.refreshWithNewestPackages() so we cover anytime the newest packages are refreshed to get other cases where we're forgetting to initiate a cache rebuild

Comment 1 Justin Sherrill 2009-04-30 19:29:08 UTC
579fffa - added call to  ChannelManager.queueChannelChange() within refreshWithNewestPackages(), so we should over everything we need to.

Comment 2 Jeff Ortel 2009-07-07 20:04:47 UTC
Verified as follows:
1) Registered system to empty custom child channel of EL5 channel.
2) Ran "yum list available | grep suds" on system and observed python-suds package not listed.
3) Added python-suds package to channel.
4) After a few minutes, re-ran step #2 and observed python-suds listed in channel.
5) Removed python-suds package from channel.
6) After a few minutes, re-ran step #2 and observed python-suds *not* listed in channel. 

repomd seems to be re-generated when package added or removed from a channel.

Comment 3 Miroslav Suchý 2009-09-10 12:06:05 UTC
Spacewalk 0.6 released


Note You need to log in before you can comment on or make changes to this bug.