[Bug 1089793] Re: testOriginMatcherWithVersionInUpdatesAndSecurity failed withAssertionError: None == None : no package 'ecryptfs-utils' installed

Jean-Baptiste Lallement jean-baptiste at ubuntu.com
Thu Dec 13 10:34:28 UTC 2012


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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1089793

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

Status in “update-manager” package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1089793/+subscriptions




More information about the foundations-bugs mailing list