Merge lp:~javier.collado/utah/bug1034902 into lp:utah

Proposed by Javier Collado
Status: Merged
Merged at revision: 615
Proposed branch: lp:~javier.collado/utah/bug1034902
Merge into: lp:utah
Diff against target: 143 lines (+5/-76)
6 files modified
debian/control (+3/-5)
debian/utah-client.postrm (+0/-18)
debian/utah-client.preinst (+0/-22)
debian/utah.postrm (+0/-6)
debian/utah.preinst (+0/-22)
utah/client/tests/README (+2/-3)
To merge this branch: bzr merge lp:~javier.collado/utah/bug1034902
Reviewer Review Type Date Requested Status
Joe Talbott (community) Approve
Review via email: mp+118962@code.launchpad.net

Description of the change

pip related code and pre-dependency has been removed
python-jsonschema has been added as a dependency

python-jsonschema package has been made available for precise in the "UTAH Stable Builds" PPA.
The same quantal packaging has been reused, so the behaviour should be exactly the same as in quantal.

To post a comment you must log in.
lp:~javier.collado/utah/bug1034902 updated
615. By Javier Collado

Fixed README to install jsonschema as a package

Revision history for this message
Joe Talbott (joetalbott) wrote :

Thanks for getting this sorted out.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2012-08-02 21:03:04 +0000
3+++ debian/control 2012-08-09 14:07:25 +0000
4@@ -10,11 +10,10 @@
5
6 Package: utah
7 Architecture: all
8-Pre-Depends: python-pip
9 Depends: ${misc:Depends}, ${python:Depends},
10 bzr, bsdtar, git, libvirt-bin, lzma,
11- python-apt, python-libvirt, python-netifaces, python-paramiko,
12- python-psutil, python-yaml
13+ python-apt, python-libvirt, python-jsonschema,
14+ python-netifaces, python-paramiko, python-psutil, python-yaml
15 Recommends: kvm, vm-tools
16 Provides: utah-client, ubuntu-automation-test-harness, ubuntu-automation-test-harness-client
17 Conflicts: utah-client, ubuntu-automation-test-harness, ubuntu-automation-test-harness-client
18@@ -23,7 +22,6 @@
19
20 Package: utah-client
21 Architecture: all
22-Pre-Depends: python-pip
23-Depends: ${misc:Depends}, ${python:Depends}, python-yaml, bzr, git
24+Depends: ${misc:Depends}, ${python:Depends}, python-jsonschema, python-yaml, bzr, git
25 Description: Ubuntu Test Automation Harness Client
26 Automation framework for testing in Ubuntu, client portion
27
28=== removed file 'debian/utah-client.postrm'
29--- debian/utah-client.postrm 2012-08-08 15:15:21 +0000
30+++ debian/utah-client.postrm 1970-01-01 00:00:00 +0000
31@@ -1,18 +0,0 @@
32-#!/bin/bash -e
33-case "$1" in
34- remove|purge|abort-install)
35- if ! dpkg -s python-jsonschema &> /dev/null \
36- && python -c "import jsonschema" &> /dev/null; then
37- echo 'Uninstalling jsonschema...'
38- pip uninstall -y jsonschema
39- fi
40- ;;
41- upgrade|failed-upgrade|abort-upgrade)
42- ;;
43- *)
44- echo "$0: didn't understand being called with '$1'" 1>&2
45- exit 0
46- ;;
47-esac
48-
49-#DEBHELPER#
50
51=== removed file 'debian/utah-client.preinst'
52--- debian/utah-client.preinst 2012-08-08 15:15:21 +0000
53+++ debian/utah-client.preinst 1970-01-01 00:00:00 +0000
54@@ -1,22 +0,0 @@
55-#!/bin/bash -e
56-case "$1" in
57- install|upgrade)
58- if ! python -c "import jsonschema" &> /dev/null; then
59- echo "Installing jsonschema..."
60- pip install jsonschema
61- fi
62- ;;
63- abort-upgrade)
64- if ! dpkg -s python-jsonschema &> /dev/null \
65- && python -c "import jsonschema" &> /dev/null; then
66- echo 'Uninstalling jsonschema...'
67- pip uninstall -y jsonschema
68- fi
69- ;;
70- *)
71- echo "$0: didn't understand being called with '$1'" 1>&2
72- exit 0
73- ;;
74-esac
75-
76-#DEBHELPER#
77
78=== modified file 'debian/utah.postrm'
79--- debian/utah.postrm 2012-08-02 20:58:48 +0000
80+++ debian/utah.postrm 2012-08-09 14:07:25 +0000
81@@ -21,12 +21,6 @@
82 fi
83
84 dnsteardown
85-
86- if ! dpkg -s python-jsonschema &> /dev/null \
87- && python -c "import jsonschema" &> /dev/null; then
88- echo 'Uninstalling jsonschema...'
89- pip uninstall -y jsonschema
90- fi
91 ;;
92 upgrade|failed-upgrade|abort-upgrade)
93 ;;
94
95=== removed file 'debian/utah.preinst'
96--- debian/utah.preinst 2012-08-08 15:15:21 +0000
97+++ debian/utah.preinst 1970-01-01 00:00:00 +0000
98@@ -1,22 +0,0 @@
99-#!/bin/bash -e
100-case "$1" in
101- install|upgrade)
102- if ! python -c "import jsonschema" &> /dev/null; then
103- echo "Installing jsonschema..."
104- pip install jsonschema
105- fi
106- ;;
107- abort-upgrade)
108- if ! dpkg -s python-jsonschema &> /dev/null \
109- && python -c "import jsonschema" &> /dev/null; then
110- echo 'Uninstalling jsonschema...'
111- pip uninstall -y jsonschema
112- fi
113- ;;
114- *)
115- echo "$0: didn't understand being called with '$1'" 1>&2
116- exit 0
117- ;;
118-esac
119-
120-#DEBHELPER#
121
122=== modified file 'utah/client/tests/README'
123--- utah/client/tests/README 2012-08-07 19:26:12 +0000
124+++ utah/client/tests/README 2012-08-09 14:07:25 +0000
125@@ -3,7 +3,7 @@
126 Files in this diretory are run via 'nosetests' and should be written and
127 named accordingly. See nosetests(?) for the default testMatch pattern.
128
129-Don't rename/name manually run (read: not automatically collected by
130+Don't rename/name manually run (read: not automatically collected by
131 nosetests) such that they match the pattern.
132
133 These tests should be written so that they can be run on a checked-out
134@@ -12,8 +12,7 @@
135 To run the tests.
136
137 # install required packages
138- sudo apt-get install python-yaml python-nose python-pip rsync
139- sudo pip install jsonschema
140+ sudo apt-get install python-yaml python-jsonschema python-nose python-pip rsync
141
142 cd ~/bzr/utah-dev
143 sudo nosetests utah/client/tests

Subscribers

People subscribed via source and target branches