Merge lp:~dholbach/pkgme/1004081 into lp:pkgme

Proposed by Daniel Holbach
Status: Merged
Approved by: James Westby
Approved revision: 108
Merged at revision: 106
Proposed branch: lp:~dholbach/pkgme/1004081
Merge into: lp:pkgme
Diff against target: 39 lines (+9/-4)
3 files modified
pkgme/distutils_command/pkgme_info.py (+1/-1)
pkgme/templates/control (+1/-0)
pkgme/tests/test_distutils_command.py (+7/-3)
To merge this branch: bzr merge lp:~dholbach/pkgme/1004081
Reviewer Review Type Date Requested Status
James Westby Approve
Jonathan Lange Approve
Review via email: mp+107339@code.launchpad.net

Commit message

Fix a couple of minor packaging bugs in generated packaging.

Description of the change

Fix 1004081.

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

 - ${misc:Depends}: I tested it with
   https://myapps.developer.ubuntu.com/dev/apps/500/ and it worked
   nicely, "dconf-gsettings-backend | gsettings-backend" got added
   during the build
 - I know that specifying the Standards-Version explicitly is not
   ideal, but we wouldn't want pkgme to have to depends on
   debian-policy or anything to figure out which version to use.

Revision history for this message
Jonathan Lange (jml) wrote :

I'm OK with this change.

review: Approve
Revision history for this message
Canonical CA Tarmac (ca-tarmac) wrote :

The attempt to merge lp:~dholbach/pkgme/1004081 into lp:pkgme failed. Below is the output from the failed tests.

Tests running...
======================================================================
FAIL: pkgme.tests.test_distutils_command.pkgme_info_tests.test_depends_is_python_depends
----------------------------------------------------------------------
Traceback (most recent call last):
  File "pkgme/tests/test_distutils_command.py", line 140, in test_depends_is_python_depends
    self.assertEqual("${python:Depends}", cmd.get_depends())
MismatchError: '${python:Depends}' != '${python:Depends}, ${misc:Depends}'

Ran 223 tests in 26.033s
FAILED (failures=1)

/tmp/tmp3l1xiN/virtualenv/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg/setuptools/command/bdist_egg.py:422: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  symbols = dict.fromkeys(iter_symbols(code))
simplejson/_speedups.c: In function 'encoder_listencode_obj':
simplejson/_speedups.c:2263: warning: comparison of distinct pointer types lacks a cast
simplejson/_speedups.c:2263: warning: passing argument 2 of 'PyType_IsSubtype' from incompatible pointer type
/usr/include/python2.6/object.h:435: note: expected 'struct PyTypeObject *' but argument is of type 'struct PyObject *'

Revision history for this message
Daniel Holbach (dholbach) wrote :

Fixed the test in the new revision.

lp:~dholbach/pkgme/1004081 updated
107. By Daniel Holbach

change test from checking if Depends equals /usr/share/man/man1/python.1.gz to test if it includes it instead

Revision history for this message
James Westby (james-w) wrote :

Hi Daniel,

Would you add another test that does the same thing for ${misc:Depends} please?

I'd be happy to do this if you rather wouldn't.

Thanks,

James

Revision history for this message
Daniel Holbach (dholbach) wrote :

Done.

lp:~dholbach/pkgme/1004081 updated
108. By Daniel Holbach

test for as well

Revision history for this message
James Westby (james-w) wrote :

Thanks Daniel.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'pkgme/distutils_command/pkgme_info.py'
2--- pkgme/distutils_command/pkgme_info.py 2011-12-08 21:18:24 +0000
3+++ pkgme/distutils_command/pkgme_info.py 2012-05-28 21:41:17 +0000
4@@ -98,4 +98,4 @@
5 return "python2"
6
7 def get_depends(self):
8- return "${python:Depends}"
9+ return "${python:Depends}, ${misc:Depends}"
10
11=== modified file 'pkgme/templates/control'
12--- pkgme/templates/control 2010-11-06 21:16:22 +0000
13+++ pkgme/templates/control 2012-05-28 21:41:17 +0000
14@@ -1,6 +1,7 @@
15 Source: $package_name
16 Section: $section
17 Priority: extra
18+Standards-Version: 3.9.3
19 Maintainer: $maintainer
20 #if $build_depends
21 Build-Depends: $build_depends
22
23=== modified file 'pkgme/tests/test_distutils_command.py'
24--- pkgme/tests/test_distutils_command.py 2011-12-08 21:19:13 +0000
25+++ pkgme/tests/test_distutils_command.py 2012-05-28 21:41:17 +0000
26@@ -135,6 +135,10 @@
27 cmd = self.get_cmd_with_metadata({})
28 self.assertEqual("python2", cmd.get_debhelper_addons())
29
30- def test_depends_is_python_depends(self):
31- cmd = self.get_cmd_with_metadata({})
32- self.assertEqual("${python:Depends}", cmd.get_depends())
33+ def test_depends_includes_python_depends(self):
34+ cmd = self.get_cmd_with_metadata({})
35+ self.assertIn("${python:Depends}", cmd.get_depends())
36+
37+ def test_depends_includes_misc_depends(self):
38+ cmd = self.get_cmd_with_metadata({})
39+ self.assertIn("${misc:Depends}", cmd.get_depends())

Subscribers

People subscribed via source and target branches