← Back to team overview

touch-packages team mailing list archive

[Bug 1469635] [NEW] Don't pick transitional -dbg over -dbgsym

 

Public bug reported:

Quoting Brian Murray: When trying to add a test like

 $ bzr diff test/test_backend_apt_dpkg.py
=== modified file 'test/test_backend_apt_dpkg.py'
--- test/test_backend_apt_dpkg.py       2015-06-17 15:54:40 +0000
+++ test/test_backend_apt_dpkg.py       2015-06-25 13:53:10 +0000
@@ -848,7 +848,9 @@
                                           ('distro-info-data',
                                            '0.18ubuntu0.2'),
                                           ('qemu-utils',
-                                           '2.0.0+dfsg-2ubuntu1.11')
+                                           '2.0.0+dfsg-2ubuntu1.11'),
+                                          ('unity-services',
+                                           '7.2.5+14.04.20150521.1-0ubuntu1'),
                                          ], False, self.cachedir)
 
         def sandbox_ver(pkg, debian=True):
@@ -884,6 +886,8 @@
         self.assertIn('distro-info-data 0.18ubuntu0.2', pkglist)
         self.assertIn('qemu-utils-dbgsym 2.0.0+dfsg-2ubuntu1.11',
                       pkglist)
+        self.assertIn('unity-services-dbgsym 7.2.5+14.04.20150521.1-0ubuntu1',
+                      pkglist)
 
         # caches packages, and their versions are as expected
         cache = os.listdir(os.path.join(self.cachedir, 'Foonux 1.2', 'apt',

This fails with

AssertionError: 'unity-services-dbgsym 7.2.5+14.04.20150521.1-0ubuntu1'
not found in ['distro-info-data 0.18ubuntu0.2', 'oxideqt-codecs
1.6.6-0ubuntu0.14.04.1', 'oxideqt-codecs-dbg 1.6.6-0ubuntu0.14.04.1',
'unity-2d-dbg 7.2.5+14.04.20150521.1-0ubuntu1', 'unity-services
7.2.5+14.04.20150521.1-0ubuntu1']

unity-2d-dbg is just a transitional package, and shouldn't trump the
-dbgsym package. We need some heuristic there, like "transitional" in
the package description, or size being < 10 kB.

** Affects: apport (Ubuntu)
     Importance: Medium
     Assignee: Martin Pitt (pitti)
         Status: In Progress

** Changed in: apport (Ubuntu)
       Status: New => In Progress

** Changed in: apport (Ubuntu)
   Importance: Undecided => Medium

** Changed in: apport (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1469635

Title:
  Don't pick transitional -dbg over -dbgsym

Status in apport package in Ubuntu:
  In Progress

Bug description:
  Quoting Brian Murray: When trying to add a test like

   $ bzr diff test/test_backend_apt_dpkg.py
  === modified file 'test/test_backend_apt_dpkg.py'
  --- test/test_backend_apt_dpkg.py       2015-06-17 15:54:40 +0000
  +++ test/test_backend_apt_dpkg.py       2015-06-25 13:53:10 +0000
  @@ -848,7 +848,9 @@
                                             ('distro-info-data',
                                              '0.18ubuntu0.2'),
                                             ('qemu-utils',
  -                                           '2.0.0+dfsg-2ubuntu1.11')
  +                                           '2.0.0+dfsg-2ubuntu1.11'),
  +                                          ('unity-services',
  +                                           '7.2.5+14.04.20150521.1-0ubuntu1'),
                                            ], False, self.cachedir)
   
           def sandbox_ver(pkg, debian=True):
  @@ -884,6 +886,8 @@
           self.assertIn('distro-info-data 0.18ubuntu0.2', pkglist)
           self.assertIn('qemu-utils-dbgsym 2.0.0+dfsg-2ubuntu1.11',
                         pkglist)
  +        self.assertIn('unity-services-dbgsym 7.2.5+14.04.20150521.1-0ubuntu1',
  +                      pkglist)
   
           # caches packages, and their versions are as expected
           cache = os.listdir(os.path.join(self.cachedir, 'Foonux 1.2', 'apt',

  This fails with

  AssertionError: 'unity-services-dbgsym 7.2.5+14.04.20150521.1-0ubuntu1'
  not found in ['distro-info-data 0.18ubuntu0.2', 'oxideqt-codecs
  1.6.6-0ubuntu0.14.04.1', 'oxideqt-codecs-dbg 1.6.6-0ubuntu0.14.04.1',
  'unity-2d-dbg 7.2.5+14.04.20150521.1-0ubuntu1', 'unity-services
  7.2.5+14.04.20150521.1-0ubuntu1']

  unity-2d-dbg is just a transitional package, and shouldn't trump the
  -dbgsym package. We need some heuristic there, like "transitional" in
  the package description, or size being < 10 kB.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1469635/+subscriptions


Follow ups

References