Merge ~sudipmuk/ubuntu/+source/lptools:merge-0.3.0-1-noble into ubuntu/+source/lptools:debian/sid

Proposed by Sudip Mukherjee
Status: Merged
Merge reported by: git-ubuntu bot
Merged at revision: d936b9668c400f66dea12e68614ea388542463ee
Proposed branch: ~sudipmuk/ubuntu/+source/lptools:merge-0.3.0-1-noble
Merge into: ubuntu/+source/lptools:debian/sid
Diff against target: 235 lines (+153/-2)
6 files modified
debian/changelog (+70/-0)
debian/control (+4/-2)
debian/patches/default-devel.patch (+25/-0)
debian/patches/failure-to-decompress.patch (+27/-0)
debian/patches/series (+3/-0)
debian/patches/support-credentials-file.patch (+24/-0)
Reviewer Review Type Date Requested Status
Lukas Märdian (community) Approve
Canonical Server Reporter Pending
git-ubuntu import Pending
Review via email: mp+460236@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :
Revision history for this message
Lukas Märdian (slyon) wrote :

Thank you for providing a clean git-ubuntu style merge!

Two tiny nitpicks (non-blocking):
* bug #2052680 should be closed from the debian/changelog
* Some rational should be given for why we want to drop the python3-indicate Recommends

Those are non-issues, so I'll sponsor it anyway.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 4da4eac..3c652e6 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,19 @@
6+lptools (0.3.0-1ubuntu1) noble; urgency=medium
7+
8+ * Merge with Debian unstable. Remaining changes:
9+ - Default to devel api level, as all others are dated now.
10+ - d/p/failure-to-decompress.patch: don't crash when an attachment
11+ cannot be downloaded because it fails to decompress.
12+ - Drop python3-indicate from Recommends.
13+ - Add support for credentials-file in lp-shell
14+ * Drop Changes:
15+ - d/p/03_ipython_import: Use the updated import path for ipython's
16+ InteractiveShellEmbed.
17+ * New Changes:
18+ - d/control: Add runtime dependency on python3-keyring.
19+
20+ -- Sudip Mukherjee <sudipm.mukherjee@gmail.com> Thu, 08 Feb 2024 07:12:49 +0000
21+
22 lptools (0.3.0-1) unstable; urgency=medium
23
24 * New upstream release.
25@@ -14,6 +30,23 @@ lptools (0.2.0+bzr48-1) unstable; urgency=low
26
27 -- Jelmer Vernooij <jelmer@debian.org> Thu, 28 Sep 2023 13:07:42 +0100
28
29+lptools (0.2.0-7ubuntu2) mantic; urgency=medium
30+
31+ * d/p/03_ipython_import: Use the updated import path for ipython's
32+ InteractiveShellEmbed. (LP: #2017644)
33+
34+ -- Brian Murray <brian@ubuntu.com> Fri, 22 Sep 2023 14:22:16 -0700
35+
36+lptools (0.2.0-7ubuntu1) hirsute; urgency=low
37+
38+ * Merge from Debian unstable. Remaining changes:
39+ - Default to devel api level, as all others are dated now.
40+ - d/p/failure-to-decompress.patch: don't crash when an attachment
41+ cannot be downloaded because it fails to decompress.
42+ - Drop python3-indicate from Recommends.
43+
44+ -- Brian Murray <brian@ubuntu.com> Tue, 16 Feb 2021 13:55:52 -0800
45+
46 lptools (0.2.0-7) unstable; urgency=medium
47
48 [ dann frazier ]
49@@ -33,6 +66,23 @@ lptools (0.2.0-6) unstable; urgency=medium
50
51 -- Jelmer Vernooij <jelmer@debian.org> Wed, 22 Apr 2020 01:42:55 +0000
52
53+lptools (0.2.0-5ubuntu2) focal; urgency=medium
54+
55+ * Add support for credentials-file in lp-shell.
56+
57+ -- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 09 Apr 2020 18:45:19 +0100
58+
59+lptools (0.2.0-5ubuntu1) focal; urgency=low
60+
61+ * Merge from Debian unstable. Remaining changes:
62+ - Default to devel api level, as all others are dated now.
63+ - d/p/failure-to-decompress.patch: don't crash when an attachment
64+ cannot be downloaded because it fails to decompress.
65+ - Move to python3.
66+ - Drop python3-indicate, python3-gtk2 from Recommends.
67+
68+ -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 01 Feb 2020 19:24:44 -0800
69+
70 lptools (0.2.0-5) unstable; urgency=medium
71
72 * Add patch 02_python3: Convert to Python 3. Closes: #936967
73@@ -65,6 +115,25 @@ lptools (0.2.0-3) unstable; urgency=medium
74
75 -- Jelmer Vernooij <jelmer@debian.org> Sun, 27 Jan 2019 19:16:42 +0000
76
77+lptools (0.2.0-2ubuntu3) focal; urgency=medium
78+
79+ * Move to python3.
80+
81+ -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 03 Dec 2019 21:55:45 -0800
82+
83+lptools (0.2.0-2ubuntu2) artful; urgency=medium
84+
85+ * d/p/failure-to-decompress.patch: don't crash when an attachment
86+ cannot be downloaded because it fails to decompress.
87+
88+ -- Brian Murray <brian@ubuntu.com> Tue, 11 Jul 2017 10:55:18 -0700
89+
90+lptools (0.2.0-2ubuntu1) xenial; urgency=medium
91+
92+ * Default to devel api level, as all others are dated now.
93+
94+ -- Dimitri John Ledkov <xnox@ubuntu.com> Tue, 09 Feb 2016 13:45:05 +0000
95+
96 lptools (0.2.0-2) unstable; urgency=low
97
98 [ Nathan Handler ]
99@@ -158,3 +227,4 @@ lptools (0.0.0-0ubuntu1~ppa1) karmic; urgency=low
100 * Initial release.
101
102 -- Ted Gould <ted@ubuntu.com> Fri, 11 Sep 2009 22:55:05 -0500
103+
104diff --git a/debian/control b/debian/control
105index 87a8366..499174b 100644
106--- a/debian/control
107+++ b/debian/control
108@@ -2,7 +2,8 @@ Source: lptools
109 Section: python
110 Priority: optional
111 Build-Depends: python3-all, dh-python, debhelper-compat (= 12)
112-Maintainer: Nathan Handler <nhandler@debian.org>
113+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
114+XSBC-Original-Maintainer: Nathan Handler <nhandler@debian.org>
115 Uploaders: Jelmer Vernooij <jelmer@debian.org>
116 Standards-Version: 4.5.0
117 Vcs-Git: https://salsa.debian.org/debian/lptools.git
118@@ -14,12 +15,13 @@ Package: lptools
119 Architecture: all
120 Breaks: ubuntu-dev-tools (<< 0.129)
121 Replaces: ubuntu-dev-tools (<< 0.129)
122-Recommends: python3-chameleon, python3-indicate
123+Recommends: python3-chameleon
124 Suggests: python3-tdb
125 Depends: python3 | ipython3,
126 python3-breezy,
127 python3-launchpadlib,
128 python3-xdg,
129+ python3-keyring,
130 ${misc:Depends},
131 ${python3:Depends},
132 sensible-utils
133diff --git a/debian/patches/default-devel.patch b/debian/patches/default-devel.patch
134new file mode 100644
135index 0000000..6f63911
136--- /dev/null
137+++ b/debian/patches/default-devel.patch
138@@ -0,0 +1,25 @@
139+Description: Default to devel api level, as all others are dated now.
140+Author: Dimitri John Ledkov <xnox@ubuntu.com>
141+
142+Index: lptools-0.2.0-7ubuntu1/bin/lp-shell
143+===================================================================
144+--- lptools-0.2.0-7ubuntu1.orig/bin/lp-shell
145++++ lptools-0.2.0-7ubuntu1/bin/lp-shell
146+@@ -29,7 +29,7 @@ def run_command(command, lp):
147+ def main():
148+ instance = 'production'
149+ valid_api_versions = ('beta', '1.0', 'devel')
150+- api_version = '1.0'
151++ api_version = 'devel'
152+
153+ usage = 'Usage: %prog [-a] [instance] [LP API version]'
154+ opt_parser = OptionParser(usage)
155+@@ -61,7 +61,7 @@ def main():
156+ api_version = args[1]
157+ else:
158+ print('E: "%s" is not a valid LP API version.' % (args[1]))
159+- print('I: Falling back to "1.0".')
160++ print('I: Falling back to "devel".')
161+
162+ if options.anonymous:
163+ launchpad = Launchpad.login_anonymously('lp-shell', instance,
164diff --git a/debian/patches/failure-to-decompress.patch b/debian/patches/failure-to-decompress.patch
165new file mode 100644
166index 0000000..40470bc
167--- /dev/null
168+++ b/debian/patches/failure-to-decompress.patch
169@@ -0,0 +1,27 @@
170+Description: continue if an attachment fails to decompress
171+ Seen with one of the attachments in bug 1701847
172+Author: Brian Murray <brian@ubuntu.com>
173+
174+--- lptools-0.2.0.orig/bin/lp-grab-attachments
175++++ lptools-0.2.0/bin/lp-grab-attachments
176+@@ -20,6 +20,7 @@
177+ #
178+ # ##################################################################
179+
180++from httplib2 import FailedToDecompressContent
181+ from optparse import OptionParser
182+ import codecs
183+ import errno
184+@@ -49,7 +50,11 @@ def download_attachments(bug, descriptio
185+ local_file.close()
186+
187+ for attachment in bug.attachments:
188+- f = attachment.data.open()
189++ try:
190++ f = attachment.data.open()
191++ except FailedToDecompressContent:
192++ print("Failed to download %s" % attachment.title)
193++ continue
194+ filename = os.path.join(os.getcwd(), bug_folder_name, f.filename)
195+ local_file = open(filename, "w")
196+ local_file.write(f.read())
197diff --git a/debian/patches/series b/debian/patches/series
198new file mode 100644
199index 0000000..8b0e184
200--- /dev/null
201+++ b/debian/patches/series
202@@ -0,0 +1,3 @@
203+default-devel.patch
204+failure-to-decompress.patch
205+support-credentials-file.patch
206diff --git a/debian/patches/support-credentials-file.patch b/debian/patches/support-credentials-file.patch
207new file mode 100644
208index 0000000..fa73a40
209--- /dev/null
210+++ b/debian/patches/support-credentials-file.patch
211@@ -0,0 +1,24 @@
212+Description: Add support for credentials-file in lp-shell.
213+Author: Dimitri John Ledkov <xnox@ubuntu.com>
214+
215+
216+--- lptools-0.2.0.orig/bin/lp-shell
217++++ lptools-0.2.0/bin/lp-shell
218+@@ -39,6 +39,9 @@ def main():
219+ opt_parser.add_option('-c', type=str,
220+ dest='command', default=None,
221+ help='Run code passed as string.')
222++ opt_parser.add_option('--credentials-file', type=str,
223++ default=None,
224++ help='Use unecrypted credentials file')
225+ opt_parser.add_option('--ipython', action='store_const',
226+ dest='shell', const='ipython', default="ipython",
227+ help='Use ipython shell (default).')
228+@@ -70,6 +73,7 @@ def main():
229+ '"%s":' % (instance, api_version))
230+ else:
231+ launchpad = Launchpad.login_with('lp-shell', instance,
232++ credentials_file=options.credentials_file,
233+ version=api_version)
234+ banner = 'Connected to LP service "%s" with API version "%s":' % \
235+ (instance, api_version)

Subscribers

People subscribed via source and target branches