Bug 619162 - Repo reports having packages even thou never synced
Repo reports having packages even thou never synced
Status: CLOSED DUPLICATE of bug 621246
Product: Pulp
Classification: Community
Component: z_other (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Mike McCune
wes hayutin
Depends On:
  Show dependency treegraph
Reported: 2010-07-28 14:11 EDT by Mike McCune
Modified: 2013-01-10 05:43 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-08-17 10:43:00 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mike McCune 2010-07-28 14:11:46 EDT
* No repo schedule defined, no feed defined yet the repo has packages:

    List of Available Repositories 

Label              	my-repo                  
Name               	my repo's name           
Feed               	None                     
Arch               	i686                     
Sync Schedule      	None                     
Packages           	31                       

DB reports no packages either:

use _database / db.repos.find()[0]:

 "packages" : {}

need to figure out why this is.
Comment 1 John Matthews 2010-07-28 14:25:17 EDT
This is due to the change to using 'deferred fields'.  The CLI is simply doing a len on 'packages', which is a string of a URL.

Fix we discussed a bit back would be to change the API and fetch the number of packages in a repo and return that, then update the CLI so it displays that package_count.
Comment 2 Pradeep Kilambi 2010-08-17 10:43:00 EDT

*** This bug has been marked as a duplicate of bug 621246 ***

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