1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221 | diff -Nru apt-listchanges-3.3/apt-listchanges/DebianFiles.py apt-listchanges-3.3ubuntu2/apt-listchanges/DebianFiles.py
--- apt-listchanges-3.3/apt-listchanges/DebianFiles.py 2016-08-15 13:55:31.000000000 -0600
+++ apt-listchanges-3.3ubuntu2/apt-listchanges/DebianFiles.py 2016-08-17 08:39:42.000000000 -0600
@@ -246,10 +246,35 @@
changelog = reduce(find_first, changelog_filenames + changelog_filenames_native, None)
binnmu = reduce(find_first, changelog_filenames_binnmu, None)
+ # for packages without a changelog, fall back to apt-changelog
+ if not changelog and (which == 'both' or which == 'changelogs'):
+ changelog_file = self.get_apt_changelog(tempdir)
+ if changelog_file:
+ changelog = self.read_changelog(changelog_file, since_version, reverse)
+
shutil.rmtree(tempdir, 1)
return (news, changelog, binnmu)
+ def get_apt_changelog(self, tempdir):
+ '''Run apt-changelog to retrieve changelog.
+
+ Return path of changelog (in tempdir), or None if retrieval failed.
+ '''
+ fname = os.path.join(tempdir, self.binary + '.changelog')
+ f = open(fname, 'w')
+ try:
+ if subprocess.call(
+ ['apt-get', 'changelog', '%s=%s' % (self.binary, self.Version)],
+ stdout=f) != 0:
+ return None
+ except OSError as e:
+ print >> sys.stderr, _('Could not run apt-changelog (%s), unable to retrieve changelog for package %s') % (str(e), self.binary)
+ return None
+
+ f.close()
+ return fname
+
def _extract_contents(self, filenames):
tempdir = tempfile.mkdtemp(prefix='apt-listchanges')
diff -Nru apt-listchanges-3.3/debian/changelog apt-listchanges-3.3ubuntu2/debian/changelog
--- apt-listchanges-3.3/debian/changelog 2016-08-15 13:55:31.000000000 -0600
+++ apt-listchanges-3.3ubuntu2/debian/changelog 2016-08-17 08:39:42.000000000 -0600
@@ -1,3 +1,11 @@
+apt-listchanges (3.3ubuntu2) yakkety; urgency=medium
+
+ * Merge with Debian; remaining changes:
+ - apt-listchanges/DebianFiles.py: only use apt-get changelog if which is
+ changelogs or both, so not for news.
+
+ -- Matthias Klose <doko@ubuntu.com> Wed, 17 Aug 2016 16:39:42 +0200
+
apt-listchanges (3.3) unstable; urgency=medium
* Upload to unstable.
@@ -118,6 +126,14 @@
-- Robert Luberda <robert@debian.org> Sun, 10 Apr 2016 20:33:32 +0200
+apt-listchanges (2.89ubuntu1) yakkety; urgency=medium
+
+ * Merge with Debian; remaining changes:
+ - apt-listchanges/DebianFiles.py: only use apt-get changelog if which is
+ changelogs or both, so not for news.
+
+ -- Matthias Klose <doko@ubuntu.com> Wed, 25 May 2016 18:11:31 +0200
+
apt-listchanges (2.89) unstable; urgency=medium
* Fix the 'none' frontend broken since version 2.86.
@@ -201,6 +217,14 @@
-- Robert Luberda <robert@debian.org> Thu, 17 Mar 2016 23:35:12 +0100
+apt-listchanges (2.85.14ubuntu1) xenial; urgency=medium
+
+ * Merge with Debian; remaining changes:
+ - apt-listchanges/DebianFiles.py: only use apt-get changelog if which is
+ changelogs or both, so not for news.
+
+ -- Matthias Klose <doko@ubuntu.com> Wed, 17 Feb 2016 14:53:58 +0100
+
apt-listchanges (2.85.14) unstable; urgency=medium
* Acknowledge NMU; thanks to Ben Hutchings for it; Closes: #718770, #733921,
@@ -232,6 +256,31 @@
-- Ben Hutchings <ben@decadent.org.uk> Sun, 12 Oct 2014 23:46:51 +0100
+apt-listchanges (2.85.13ubuntu3) vivid; urgency=medium
+
+ * apt-listchanges/DebianFiles.py: only use apt-get changelog if which is
+ changelogs or both, so not for news (LP: #839378). Thanks to Launchpad
+ user snafu109 for the patch.
+
+ -- Brian Murray <brian@ubuntu.com> Wed, 11 Feb 2015 14:11:55 -0800
+
+apt-listchanges (2.85.13ubuntu2) trusty; urgency=medium
+
+ * Apply patch from BTS to remove incorrect dpkg-dev usage (closes: #733921)
+
+ -- Adam Conrad <adconrad@ubuntu.com> Fri, 11 Apr 2014 10:12:56 -0600
+
+apt-listchanges (2.85.13ubuntu1) trusty; urgency=medium
+
+ * Merge from Debian unstable. Remaining changes:
+ - apt-listchanges/DebianFiles.py:
+ + If the new package does not have a Debian changelog, fall back
+ to apt-get changelog.
+ - debian/control: version depend on apt with apt-get changelog support
+ - Build using dh_python2.
+
+ -- Logan Rosen <logan@ubuntu.com> Sat, 04 Jan 2014 15:13:32 -0500
+
apt-listchanges (2.85.13) unstable; urgency=low
* Add missing dep on dpkg-dev, required to run dpkg-architecture; thanks to
@@ -266,6 +315,17 @@
-- Sandro Tosi <morph@debian.org> Tue, 21 Aug 2012 01:20:55 +0200
+apt-listchanges (2.85.11ubuntu1) raring; urgency=low
+
+ * Merge from Debian unstable. Remaining changes:
+ - apt-listchanges/DebianFiles.py:
+ + If the new package does not have a Debian changelog, fall back
+ to apt-get changelog.
+ - debian/control: version depend on apt with apt-get changelog support
+ - Build using dh_python2.
+
+ -- Logan Rosen <logan@ubuntu.com> Tue, 23 Oct 2012 17:16:34 -0400
+
apt-listchanges (2.85.11) unstable; urgency=low
* Don't use _() if we can't set requested locale; thanks to Ansgar Burchardt
@@ -309,6 +369,22 @@
-- Sandro Tosi <morph@debian.org> Fri, 17 Feb 2012 21:32:26 +0100
+apt-listchanges (2.85.8ubuntu2) precise; urgency=low
+
+ * Build using dh_python2.
+
+ -- Matthias Klose <doko@ubuntu.com> Sat, 17 Dec 2011 11:59:11 +0100
+
+apt-listchanges (2.85.8ubuntu1) oneiric; urgency=low
+
+ * Merge from debian unstable. Remaining changes:
+ - apt-listchanges/DebianFiles.py:
+ + If the new package does not have a Debian changelog, fall back
+ to apt-get changelog.
+ - debian/control: version depend on apt with apt-get changelog support
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 17 Jun 2011 10:47:04 +0200
+
apt-listchanges (2.85.8) unstable; urgency=low
* Update the debconf Danish PO file; thanks to Joe Dalton; Closes: #610566
@@ -317,6 +393,14 @@
-- Sandro Tosi <morph@debian.org> Tue, 31 May 2011 11:57:14 +0200
+apt-listchanges (2.85.7ubuntu1) oneiric; urgency=low
+
+ * Merge from debian unstable. Remaining changes:
+ - If the new package does not have a Debian changelog, fall back
+ to apt-get changelog.
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 23 May 2011 13:50:27 +0200
+
apt-listchanges (2.85.7) unstable; urgency=low
* Update the program Catalan PO file; thanks to Jordi Mallach; Closes:
@@ -324,6 +408,14 @@
-- Sandro Tosi <morph@debian.org> Sat, 11 Dec 2010 21:27:48 +0100
+apt-listchanges (2.85.6ubuntu1) natty; urgency=low
+
+ * Merge from debian unstable. Remaining changes:
+ - If the new package does not have a Debian changelog, fall back
+ to apt-get changelog.
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Thu, 25 Nov 2010 20:54:43 +0100
+
apt-listchanges (2.85.6) unstable; urgency=low
* Update the program Danish PO file; thanks to Joe Dalton; Closes:
@@ -336,6 +428,20 @@
-- Sandro Tosi <morph@debian.org> Tue, 16 Nov 2010 22:20:39 +0100
+apt-listchanges (2.85.5ubuntu2) natty; urgency=low
+
+ * apt-listchanges/DebianFiles.py: use apt-get changelog
+ * debian/control: depend on apt with apt-get changelog support
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Thu, 18 Nov 2010 13:41:42 +0100
+
+apt-listchanges (2.85.5ubuntu1) natty; urgency=low
+
+ * apt-listchanges/DebianFiles.py: If the new package does not have a Debian
+ changelog, fall back to apt-changelog.
+
+ -- Martin Pitt <martin.pitt@ubuntu.com> Thu, 11 Nov 2010 17:13:34 +0100
+
apt-listchanges (2.85.5) unstable; urgency=low
* Update the program French PO file, and revert the wrongly changed
diff -Nru apt-listchanges-3.3/debian/control apt-listchanges-3.3ubuntu2/debian/control
--- apt-listchanges-3.3/debian/control 2016-08-15 13:55:31.000000000 -0600
+++ apt-listchanges-3.3ubuntu2/debian/control 2016-08-17 08:39:42.000000000 -0600
@@ -1,7 +1,8 @@
Source: apt-listchanges
Section: utils
Priority: standard
-Maintainer: Robert Luberda <robert@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Robert Luberda <robert@debian.org>
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/apt-listchanges.git/
Vcs-Git: https://anonscm.debian.org/git/collab-maint/apt-listchanges.git
|