Merge lp:~stgraber/update-manager/update-manager-split-modules into lp:update-manager

Proposed by Stéphane Graber
Status: Merged
Approved by: Barry Warsaw
Approved revision: 2481
Merged at revision: 2472
Proposed branch: lp:~stgraber/update-manager/update-manager-split-modules
Merge into: lp:update-manager
Diff against target: 159 lines (+60/-10)
7 files modified
debian/changelog (+4/-0)
debian/control (+35/-4)
debian/python-update-manager.install (+4/-0)
debian/python3-update-manager.install (+4/-0)
debian/rules (+13/-1)
debian/update-manager-core.dirs (+0/-1)
debian/update-manager-core.install (+0/-4)
To merge this branch: bzr merge lp:~stgraber/update-manager/update-manager-split-modules
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Review via email: mp+109907@code.launchpad.net
To post a comment you must log in.
2475. By Stéphane Graber

Update version dependency of python-apt and python3-apt

2476. By Stéphane Graber

Move from -all-dev to -all python packages as we no longer build binaries

2477. By Stéphane Graber

Update target of DistUpgrade/apt_clone.py for new python3 version of apt-clone

2478. By Stéphane Graber

Add versioned dependency on apt-clone

2479. By Stéphane Graber

Set base python version to 3.2

2480. By Stéphane Graber

Set the right version of apt-clone

2481. By Stéphane Graber

Set uploaded apt-clone version as minimum

Revision history for this message
Barry Warsaw (barry) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified symlink 'DistUpgrade/apt_clone.py'
2=== target changed u'/usr/share/pyshared/apt_clone.py' => u'/usr/lib/python3/dist-packages/apt_clone.py'
3=== modified file 'debian/changelog'
4--- debian/changelog 2012-06-12 16:59:59 +0000
5+++ debian/changelog 2012-06-12 22:03:19 +0000
6@@ -71,6 +71,10 @@
7 [ Stéphane Graber ]
8 * Drop fdsend as it's not used and doesn't build with python3.
9 * Make update-manager-core a binary all packages (everything is python).
10+ * Split update-manager-core into python-update-manager,
11+ python3-update-manager and update-manager-core.
12+ * Build-depend and depend on python-apt >= 0.8.5~ as we need proper
13+ python3 support.
14
15 -- Colin Watson <cjwatson@ubuntu.com> Mon, 11 Jun 2012 11:46:37 +0100
16
17
18=== modified file 'debian/control'
19--- debian/control 2012-06-12 16:59:59 +0000
20+++ debian/control 2012-06-12 22:03:19 +0000
21@@ -3,25 +3,28 @@
22 Priority: optional
23 Maintainer: Michael Vogt <michael.vogt@ubuntu.com>
24 Build-Depends: debhelper (>= 7.0.50~),
25- python-all-dev (>= 2.7),
26+ python-all (>= 2.7),
27 python-distutils-extra (>= 1.90),
28- python-apt (>= 0.8.0),
29+ python-apt (>= 0.8.5~),
30+ python3-all,
31+ python3-distutils-extra,
32 lsb-release,
33 ubuntu-drivers-common [i386 amd64],
34- apt-clone
35+ apt-clone (>= 0.2.3~ubuntu1)
36 Build-Depends-Indep: libxml-parser-perl,
37 scrollkeeper,
38 intltool
39 Standards-Version: 3.8.0
40 Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/update-manager/main
41 X-Python-Version: >= 2.7
42+X-Python3-Version: >= 3.2
43
44 Package: update-manager-core
45 Architecture: all
46 Section: admin
47 Depends: ${python:Depends},
48 ${misc:Depends},
49- python-apt (>= 0.8.0),
50+ python-update-manager,
51 lsb-release
52 Recommends: libpam-modules (>= 1.0.1-9ubuntu3)
53 Replaces: update-manager (<< 1:0.146.2)
54@@ -30,6 +33,34 @@
55 Description: manage release upgrades
56 This is the core of update-manager and the release upgrader
57
58+Package: python-update-manager
59+Architecture: all
60+Section: admin
61+Replaces: update-manager-core (<< 1:0.163)
62+Breaks: update-manager-core (<< 1:0.163)
63+Depends: ${python:Depends},
64+ ${misc:Depends},
65+ python-apt (>= 0.8.5~),
66+ lsb-release
67+Description: python 2.x module for update-manager
68+ Python modules for update-manager (DistUpgrade, UpdateManager).
69+ .
70+ This package contains the python 2.x version of these modules.
71+
72+Package: python3-update-manager
73+Architecture: all
74+Section: admin
75+Replaces: update-manager-core (<< 1:0.163)
76+Breaks: update-manager-core (<< 1:0.163)
77+Depends: ${python3:Depends},
78+ ${misc:Depends},
79+ python3-apt (>= 0.8.5~),
80+ lsb-release
81+Description: python 3.x module for update-manager
82+ Python modules for update-manager (DistUpgrade, UpdateManager).
83+ .
84+ This package contains the python 3.x version of these modules.
85+
86 Package: update-manager
87 Architecture: all
88 Depends: ${python:Depends}, ${misc:Depends},
89
90=== added file 'debian/python-update-manager.install'
91--- debian/python-update-manager.install 1970-01-01 00:00:00 +0000
92+++ debian/python-update-manager.install 2012-06-12 22:03:19 +0000
93@@ -0,0 +1,4 @@
94+debian/tmp/usr/lib/python2*/dist-packages/UpdateManager/Core
95+debian/tmp/usr/lib/python2*/dist-packages/UpdateManager/__init__.py
96+debian/tmp/usr/lib/python2*/dist-packages/DistUpgrade
97+debian/tmp/usr/lib/python2*/dist-packages/janitor
98
99=== added file 'debian/python3-update-manager.install'
100--- debian/python3-update-manager.install 1970-01-01 00:00:00 +0000
101+++ debian/python3-update-manager.install 2012-06-12 22:03:19 +0000
102@@ -0,0 +1,4 @@
103+debian/tmp/usr/lib/python3*/dist-packages/UpdateManager/Core
104+debian/tmp/usr/lib/python3*/dist-packages/UpdateManager/__init__.py
105+debian/tmp/usr/lib/python3*/dist-packages/DistUpgrade
106+debian/tmp/usr/lib/python3*/dist-packages/janitor
107
108=== modified file 'debian/rules'
109--- debian/rules 2012-06-01 19:53:40 +0000
110+++ debian/rules 2012-06-12 22:03:19 +0000
111@@ -4,7 +4,7 @@
112 DIST=$(shell lsb_release -c -s)
113 DEBVER=$(shell LC_ALL=C dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p' | sed s/.*://)
114 TARNAME=dist-upgrader_$(DEBVER)_$(ARCH).tar.gz
115-DH_ARGS=--with=python2
116+DH_ARGS=--with=python2,python3
117 %:
118 dh $@ $(DH_ARGS)
119
120@@ -26,3 +26,15 @@
121 $(DEBVER)/*ReleaseAnnouncement* \
122 $(DEBVER)/$(DIST).tar.gz )
123 dpkg-distaddfile $(TARNAME) raw-dist-upgrader -
124+
125+override_dh_auto_build:
126+ dh_auto_build
127+ set -ex; for python in $(shell py3versions -r); do \
128+ $$python setup.py build; \
129+ done
130+
131+override_dh_auto_install:
132+ dh_auto_install
133+ set -ex; for python in $(shell py3versions -r); do \
134+ $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
135+ done
136
137=== modified file 'debian/update-manager-core.dirs'
138--- debian/update-manager-core.dirs 2012-06-11 15:08:35 +0000
139+++ debian/update-manager-core.dirs 2012-06-12 22:03:19 +0000
140@@ -4,4 +4,3 @@
141 etc/update-motd.d
142 etc/update-manager/release-upgrades.d
143 usr/bin
144-usr/lib/python*/dist-packages/janitor
145
146=== modified file 'debian/update-manager-core.install'
147--- debian/update-manager-core.install 2012-06-12 16:59:59 +0000
148+++ debian/update-manager-core.install 2012-06-12 22:03:19 +0000
149@@ -3,10 +3,6 @@
150 debian/tmp/etc/update-manager/*
151 debian/tmp/usr/share/locale
152 debian/tmp/usr/share/update-manager/*.cfg
153-debian/tmp/usr/lib/python*/dist-packages/UpdateManager/Core
154-debian/tmp/usr/lib/python*/dist-packages/UpdateManager/__init__.py
155-debian/tmp/usr/lib/python*/dist-packages/DistUpgrade
156-debian/tmp/usr/lib/python*/dist-packages/janitor
157 debian/release-upgrade-motd usr/lib/update-manager
158 debian/91-release-upgrade etc/update-motd.d/
159 debian/source_update-manager.py /usr/share/apport/package-hooks/

Subscribers

People subscribed via source and target branches

to status/vote changes: