This simple change to a test will exhibit the cause of the failure:
$ bzr diff test/test_backend_apt_dpkg.py
=== modified file 'test/test_backend_apt_dpkg.py'
--- test/test_backend_apt_dpkg.py 2014-04-30 14:27:45 +0000
+++ test/test_backend_apt_dpkg.py 2014-07-10 19:34:40 +0000
@@ -168,6 +168,7 @@
self.assertEqual(impl.get_file_package('/bin/bash'), 'bash')
self.assertEqual(impl.get_file_package('/bin/cat'), 'coreutils')
self.assertEqual(impl.get_file_package('/etc/blkid.tab'), 'libblkid1')
+ self.assertEqual(impl.get_file_package('/usr/bin/whoopsie'),
'whoopsie-daisy')
self.assertEqual(impl.get_file_package('/nonexisting'), None)
def test_get_file_package_uninstalled(self):
Running the test on a 14.04 system fails (this is the opposite of the
description where retracing failed on a 12.04 system because we were
trying to install whoopsie-daisy in a Utopic sandbox but the cause is
the same) with the following error:
$ PYTHON=python3 test/run backend_apt_dpkg.test_get_file_package
Testing local source tree.
Running pep8...
Running pyflakes...
--- Testing backend_apt_dpkg.test_get_file_package ---
test_get_file_package (__main__.T)
get_file_package() on installed files. ... FAIL
======================================================================
FAIL: test_get_file_package (__main__.T)
get_file_package() on installed files.
----------------------------------------------------------------------
Traceback (most recent call last):
File "test/test_backend_apt_dpkg.py", line 171, in test_get_file_package
self.assertEqual(impl.get_file_package('/usr/bin/whoopsie'),
'whoopsie-daisy')
AssertionError: 'whoopsie' != 'whoopsie-daisy'
- whoopsie
+ whoopsie-daisy
? ++++++
This is because get_file_package first checks in
'/var/lib/dpkg/info/*.list' and returns information from the host system
and not in map_cachedir.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1336062
Title:
apport-retrace on precise confused by source package name changing
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1336062/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs