testOriginMatcherWithVersionInUpdatesAndSecurity failed withAssertionError: None == None : no package 'ecryptfs-utils' installed

Bug #1089793 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On raring, update-manager 1:0.174.3 testsuite fails in autopkgtest with:

.......................................................F.....
======================================================================
FAIL: testOriginMatcherWithVersionInUpdatesAndSecurity (test_update_origin.TestOriginMatcher)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/tmp.1D3PqTiuwa/dsc0-build/update-manager-0.174.3/tests/test_update_origin.py", line 121, in testOriginMatcherWithVersionInUpdatesAndSecurity
    "no package '%s' installed" % pkg.name)
AssertionError: None == None : no package 'ecryptfs-utils' installed

----------------------------------------------------------------------
Ran 61 tests in 31.644s

FAILED (failures=1)

On amd64 the package is libc6-prof

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: update-manager 1:0.174.3
ProcVersionSignature: Ubuntu 3.7.0-5.13-generic 3.7.0-rc8
Uname: Linux 3.7.0-5-generic x86_64
ApportVersion: 2.7-0ubuntu1
Aptdaemon:

Architecture: amd64
Date: Thu Dec 13 08:51:40 2012
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager
UpgradeStatus: Upgraded to raring on 2012-01-31 (316 days ago)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

pkg.current_ver is always None despite its status in Installed in dpkg status file.

>>> import apt
>>> c = apt.Cache(rootdir = '/home/ubuntu/update-manager-0.174.3/tests/aptroot-update-origin')
>>> c.update()
True
>>> c.open()
>>> p=c['python-libvirt']
>>> p._pkg.current_ver
>>>

$ ls -l /home/ubuntu/update-manager-0.174.3/tests/aptroot-update-origin/var/lib/dpkg/status
-rw-r--r-- 1 root root 11185 Dec 13 10:04 /home/ubuntu/update-manager-0.174.3/tests/aptroot-update-origin/var/lib/dpkg/status

$ head -5 /home/ubuntu/update-manager-0.174.3/tests/aptroot-update-origin/var/lib/dpkg/status
Package: python-libvirt
Status: install ok installed
Installed-Size: 1
Version: 0.7.5-5ubuntu27.16
Description: foo

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.175

---------------
update-manager (1:0.175) raring; urgency=low

  [ Eric Williams ]
  * German translation fix (LP: #1070289)

  [ Stephen Kraemer ]
  * UpdateManager/Dialogs.py: made Settings... button open software-properties
    non-modally. (LP: #1058070)

  [ Robert Roth ]
  * Remove package count badge from the unity launcher (LP: #1036891)
  * Added 6px border to the button box to align the buttons with the contents
    above (LP: #1081099)

  [ Michael Vogt ]
  * debian/rules:
    - do not call dh_auto_build as as it call py2 even when its not
      supposed to (LP: #1089808), thanks to Jean-Baptiste Lallement
  * fix missing "Architecture" when writing out the fake dpkg-status
    file in the tests (LP: #1089793)
 -- Michael Vogt <email address hidden> Tue, 30 Oct 2012 09:09:13 +0100

Changed in update-manager (Ubuntu):
status: New → 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.