update-pkgcache raising TypeError exception

Bug #31198 reported by Stuart Bishop
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Diogo Matsubara

Bug Description

 affects /products/launchpad

-------- Original Message --------
Subject: Cron <launchpad@asuka> env LPCONFIG=staging
/srv/launchpad.ubuntu.com/staging/launchpad/cronscripts/update-pkgcache.py -q
Date: Thu, 9 Feb 2006 15:10:57 +0000 (GMT)
From: <email address hidden> (Cron Daemon)
Reply-To: <email address hidden>
To: <email address hidden>

Traceback (most recent call last):
  File
"/srv/launchpad.ubuntu.com/staging/launchpad/cronscripts/update-pkgcache.py",
line 93, in ?
    sys.exit(main(sys.argv))
  File
"/srv/launchpad.ubuntu.com/staging/launchpad/cronscripts/update-pkgcache.py",
line 76, in main
    distrorelease.updateCompletePackageCache(ztm=ztm)
  File
"/srv/launchpad.ubuntu.com/staging/launchpad/lib/canonical/launchpad/database/distrorelease.py",
line 528, in updateCompletePackageCache
    self.updatePackageCache(bpn)
  File
"/srv/launchpad.ubuntu.com/staging/launchpad/lib/canonical/launchpad/database/distrorelease.py",
line 551, in updatePackageCache
    if len(bprs) == 0:
TypeError: len() of unsized object

--
Launchpad-error-reports mailing list
<email address hidden>
https://lists.ubuntu.com/mailman/listinfo/launchpad-error-reports

--
Stuart Bishop <email address hidden> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/

Revision history for this message
Diogo Matsubara (matsubara) wrote :

Is this the same problem as OOPS-43A676?

Revision history for this message
Stuart Bishop (stub) wrote :

Similar bug but different. This one is in updatePackageCache in distrorelease.py - this code path is only called from the update-pkgcache.py script.

Revision history for this message
Stuart Bishop (stub) wrote :

This is stopping the script from running and should be a trivial fix.

Changed in launchpad:
status: Unconfirmed → Confirmed
Dafydd Harries (daf)
Changed in launchpad:
assignee: nobody → matsubara
Changed in launchpad:
status: Confirmed → In Progress
Changed in launchpad:
status: In Progress → Fix Committed
Christian Reis (kiko)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.