Merge lp:~logan/ubuntu/trusty/dput/0.9.6.4ubuntu1 into lp:ubuntu/trusty/dput

Proposed by Logan Rosen
Status: Merged
Merged at revision: 17
Proposed branch: lp:~logan/ubuntu/trusty/dput/0.9.6.4ubuntu1
Merge into: lp:ubuntu/trusty/dput
Diff against target: 369 lines (+114/-57)
10 files modified
dcut (+10/-6)
dcut.1 (+5/-5)
debian/changelog (+49/-0)
debian/control (+2/-2)
debian/rules (+3/-1)
dput (+8/-4)
dput.1 (+32/-32)
dput.cf (+0/-6)
ftp.py (+1/-0)
http.py (+4/-1)
To merge this branch: bzr merge lp:~logan/ubuntu/trusty/dput/0.9.6.4ubuntu1
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+198473@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'dcut'
2--- dcut 2010-01-19 20:20:30 +0000
3+++ dcut 2013-12-10 22:42:10 +0000
4@@ -18,7 +18,7 @@
5 # along with this program; if not, write to the Free Software
6 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
7
8-import sys, getopt, os, tempfile, string, time
9+import sys, getopt, os, tempfile, string, time, subprocess
10
11 sys.path.insert(0,'/usr/share/dput/helper')
12 import dputhelper
13@@ -203,11 +203,13 @@
14 f.write("Uploader: %s\n"%options['uploader'])
15 f.write("Commands:\n %s\n\n"%('\n '.join(commands)))
16 f.close()
17- debsign_cmdline = "debsign '-m%s'" % options['uploader']
18- if options['keyid']: debsign_cmdline += " '-k%s'" % options['keyid']
19- debsign_cmdline += " '%s'" % filename
20+ debsign_cmdline = ['debsign']
21+ debsign_cmdline.append('-m%s' % options['uploader'])
22+ if options['keyid']: debsign_cmdline.append('-k%s' % options['keyid'])
23+ debsign_cmdline.append('%s' % filename)
24 if options['debug']: print "D: calling debsign:",debsign_cmdline
25- if os.system(debsign_cmdline):
26+ debsign_prog = subprocess.Popen(debsign_cmdline)
27+ if os.waitpid(debsign_prog.pid, 0)[1]:
28 print >> sys.stderr, "Error: debsign failed."
29 sys.exit(1)
30 return filename
31@@ -275,8 +277,10 @@
32 if debug and config.getboolean(host, 'scp_compress'):
33 print "D: Setting compression for scp"
34 scp_compress = config.getboolean(host, 'scp_compress')
35+ ssh_config_options = filter(None, map(lambda x: x.strip(),
36+ config.get (host ,'ssh_config_options').split('\n')))
37 upload_methods[method](fqdn, login, incoming, \
38- files_to_upload, debug, scp_compress)
39+ files_to_upload, debug, scp_compress, ssh_config_options)
40 else:
41 upload_methods[method](fqdn, login, incoming, \
42 files_to_upload, debug, 0)
43
44=== modified file 'dcut.1'
45--- dcut.1 2013-05-26 00:34:14 +0000
46+++ dcut.1 2013-12-10 22:42:10 +0000
47@@ -10,7 +10,7 @@
48 [\fIcommand\fR [\fB,\fR \fIcommand\fR]]
49 .P
50 .B dcut
51-\fB-U\fR \fIfilename\fR
52+\fB\-U\fR \fIfilename\fR
53 [\fIhost\fR]
54 .SH DESCRIPTION
55 dcut creates and / or uploads .commands files for the Debian FTP
56@@ -22,14 +22,14 @@
57 funnily named, i.e. it could mistaken for a command, you may also use
58 a command line option to specify the host.
59 In default operation mode (unless you request to upload an existing
60-file), the host description is followed by a comma-seperated list of
61+file), the host description is followed by a comma-separated list of
62 commands. (Semicolons also work but require shell escaping.)
63 .SH COMMANDS
64 Presently supported commands are \fBrm\fR, \fBreschedule\fR and
65 \fBcancel\fR. \fBrm\fR can be used to remove files from the
66 UploadQueue directories. \fBdcut\fR generates commands that
67-search the subdirectories automaticall, but you can also
68-specify \fB--nosearchdirs\fR and then target individual
69+search the subdirectories automatically, but you can also
70+specify \fB\-\-nosearchdirs\fR and then target individual
71 UploadQueue directories, i.e. either filenames without path for
72 regular incoming or \fBDELAYED/#-day/filename\fR. Wildcards
73 are accepted. \fBreschedule changes-file #-day\fR can be used
74@@ -160,7 +160,7 @@
75 -----END PGP SIGNATURE-----
76 .fi
77
78-If you've uploaded packages with the --delayed option (uploaded to
79+If you've uploaded packages with the \-\-delayed option (uploaded to
80 \fBDEFERRED\fR queue), then use the \fBcancel\fR command with a .changes
81 file.
82
83
84=== modified file 'debian/changelog'
85--- debian/changelog 2013-05-26 00:34:14 +0000
86+++ debian/changelog 2013-12-10 22:42:10 +0000
87@@ -1,3 +1,52 @@
88+dput (0.9.6.4ubuntu1) trusty; urgency=low
89+
90+ * Merge from Debian unstable. Remaining changes:
91+ - debian/control: Added suggests on python-bzrlib (as we use the
92+ bzrlib.transport).
93+ - debian/rules: Updated to install sftp.py.
94+ - dput:
95+ + Recognize 0ubuntu1 as a debian version that requires
96+ orig.tar.gz to be included in the upload.
97+ + Correctly handle cases where a non-existant host or no host at all is
98+ supplied when -o option is passed. (Thanks to David Futcher for
99+ spotting)
100+ + Be more careful about setting a variable in a section that does not
101+ exist in host argument handling.
102+ - dput.1: Updated to document host argument feature and sftp support.
103+ - dput.cf:
104+ + Set 'default_main_host = ubuntu'
105+ + Set 'progress_indicator = 2'
106+ + Updated ppa stanza to make use of argument support.
107+ - dput.cf.5: Updated to note support for sftp transport and host args.
108+ - http.py: Don't incorrectly assume that HTTPResponse.reason is an
109+ integer when generating an error message.
110+ - sftp.py: Support for uploads via sftp transport with a progress
111+ indicator.
112+
113+ -- Logan Rosen <logan@ubuntu.com> Tue, 10 Dec 2013 17:20:23 -0500
114+
115+dput (0.9.6.4) unstable; urgency=low
116+
117+ [ Salvatore Bonaccorso ]
118+ * Add missing space in printed sentence after lintian checks.
119+
120+ [ Y Giridhar Appaji Nag ]
121+ * dcut honours ssh_config_options, thanks Luca Falavigna (Closes: #656692)
122+ * Allow quote in DEBFULLNAME, thanks Thomas Preud'homme (Closes: #578617)
123+ * Fix HTTPS auth urllib2 failures, thanks Chow Loong Jin (Closes: #580505)
124+ * Merge NUMs to git, thanks Thijs Kinkhorst and Alberto Á. Fuentes
125+ * Remove jp server from dput.cf, thanks Hideki Yamane (Closes: #703858)
126+ * Check for execute perms of /usr/bin/gpg instead of read, thanks Richard
127+ Laager (Closes: #595505)
128+ * Add missing stdout flush between "Uploading" and "done." for ftp, thanks
129+ Thorsten Glaser (Closes: #664685)
130+ * Apply patch from Jan Hauke Rahm to catch exception if there is no section
131+ in the config file for a given default_host (Closes: #621507)
132+ * Apply Andrew Shadura's patch for various manpage fixes (Closes: #695175)
133+ * Update Standards-Version to 3.9.4 (add build-arch and build-indep etc.)
134+
135+ -- Y Giridhar Appaji Nag <appaji@debian.org> Fri, 19 Jul 2013 16:41:55 +0530
136+
137 dput (0.9.6.3+nmu2ubuntu1) saucy; urgency=low
138
139 * Merge from Debian unstable. Remaining changes:
140
141=== modified file 'debian/control'
142--- debian/control 2013-05-26 00:34:14 +0000
143+++ debian/control 2013-12-10 22:42:10 +0000
144@@ -4,8 +4,8 @@
145 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
146 XSBC-Original-Maintainer: Y Giridhar Appaji Nag <appaji@debian.org>
147 Build-Depends-Indep: debconf-utils (>= 1.1.1)
148-Standards-Version: 3.9.3
149-Vcs-Git: git://git.debian.org/git/collab-maint/dput.git
150+Standards-Version: 3.9.4
151+Vcs-Git: git://anonscm.debian.org/collab-maint/dput.git
152 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/dput.git
153
154 Package: dput
155
156=== modified file 'debian/rules'
157--- debian/rules 2013-05-26 00:34:14 +0000
158+++ debian/rules 2013-12-10 22:42:10 +0000
159@@ -3,7 +3,9 @@
160 PACKAGE := dput
161 TMPDIR := debian/tmp
162
163-build: build-stamp
164+build: build-arch build-indep
165+build-arch: build-stamp
166+build-indep: build-stamp
167 build-stamp:
168 test -e debian/control
169 touch build-stamp
170
171=== modified file 'dput'
172--- dput 2013-05-26 00:34:14 +0000
173+++ dput 2013-12-10 22:42:10 +0000
174@@ -189,7 +189,7 @@
175 # Verify the GnuPG signature on a file.
176 def check_signature(filename):
177 if os.access(filename, os.R_OK):
178- if os.access("/usr/bin/gpg", os.R_OK):
179+ if os.access("/usr/bin/gpg", os.X_OK):
180 stream = os.popen("/usr/bin/gpg --status-fd 1 --verify --batch %s" % filename).read()
181 if stream.count('[GNUPG:] GOODSIG'):
182 print "Good signature on %s." % filename
183@@ -304,8 +304,12 @@
184 sys.exit(1)
185
186 # Run the check to verify that the package has been tested.
187- if config.getboolean(host, 'check_version') == 1 or check_version:
188- version_check (path, changes, debug)
189+ try:
190+ if config.getboolean(host, 'check_version') == 1 or check_version:
191+ version_check (path, changes, debug)
192+ except ConfigParser.NoSectionError, e:
193+ print >> sys.stderr, "Error in config file:\n%s" % str(e)
194+ sys.exit(1)
195
196 # Verify the signature of the maintainer
197 verify_signature(host, change_file, dsc_file, check_only, debug,\
198@@ -411,7 +415,7 @@
199 ['lintian', '-i', changes_file]):
200 print
201 print "Lintian says this package is not compliant" +\
202- "with the current policy."
203+ " with the current policy."
204 print "Please check the current policy and your package."
205 print "Also see lintian documentation about overrides."
206 sys.exit(1)
207
208=== modified file 'dput.1'
209--- dput.1 2013-05-26 00:34:14 +0000
210+++ dput.1 2013-12-10 22:42:10 +0000
211@@ -33,71 +33,71 @@
212 Debian upload queue daemon (e.g. ftp-master), you can remove files from
213 the upload queue with \fBdcut\fP(1).
214 .SH OPTIONS
215-.BR "-c",
216-.B --config
217+.BR "\-c",
218+.B \-\-config
219 \- define a config file to use.
220 .P
221-.BR "-d",
222-.B --debug
223+.BR "\-d",
224+.B \-\-debug
225 \- activate debugging mode, helpful if bugs occur.
226 .P
227-.BR "-D",
228-.B --dinstall
229+.BR "\-D",
230+.B \-\-dinstall
231 \- do a dry run of dinstall after the upload.
232 .P
233-.BR "-f",
234-.B --force
235+.BR "\-f",
236+.B \-\-force
237 \- force an upload of an already uploaded package.
238 .P
239-.BR "-h",
240-.B --help
241+.BR "\-h",
242+.B \-\-help
243 \- print help information and exit.
244 .P
245-.BR "-H",
246-.B --host-list
247+.BR "\-H",
248+.B \-\-host\-list
249 \- print the lists of hosts that dput knows about.
250 .P
251-.BR "-l",
252-.B --lintian
253+.BR "\-l",
254+.B \-\-lintian
255 \- run lintian before the upload.
256 .P
257-.BR "-U",
258-.B --no-upload-log
259+.BR "\-U",
260+.B \-\-no-upload\-log
261 \- do not write a .upload log file after uploading.
262 .P
263-.BR "-o",
264-.B --check-only
265+.BR "\-o",
266+.B \-\-check-only
267 \- check only the package and do not upload.
268 .P
269-.BR "-p",
270-.B --print
271+.BR "\-p",
272+.B \-\-print
273 \- print the configuration that dput is using.
274 .P
275-.BR "-P",
276-.B --passive
277+.BR "\-P",
278+.B \-\-passive
279 \- use passive ftp instead of active. Note that passive ftp is the default
280 unless specified otherwise in the configuration file.
281 .P
282-.BR "-s",
283-.B --simulate
284+.BR "\-s",
285+.B \-\-simulate
286 \- simulate an upload only.
287 .P
288-.BR "-u",
289-.B --unchecked
290+.BR "\-u",
291+.B \-\-unchecked
292 \- don't check GnuPG signature on the changes file.
293 .P
294-.BR "-e",
295-.B --delayed
296+.BR "\-e",
297+.B \-\-delayed
298 \- Upload to a DELAYED queue, rather than the usual Incoming. This
299 takes an argument from 0 to 15. Note that a delay of 0 is different
300 from no delay at all.
301 .P
302-.BR "-v",
303-.BR --version
304+.BR "\-v",
305+.BR \-\-version
306 \- print version information and exit.
307 .P
308-.BR "-V",
309-.BR --check-version
310+.BR "\-V",
311+.BR \-\-check\-version
312 \- check if the user has already installed and tested the package before
313 putting it into the archive.
314 .P
315
316=== modified file 'dput.cf'
317--- dput.cf 2013-05-26 00:34:14 +0000
318+++ dput.cf 2013-12-10 22:42:10 +0000
319@@ -76,12 +76,6 @@
320 # Please be sure to know what you are doing before taking it out.
321 pre_upload_command = /usr/share/dput/helper/security-warning
322
323-[jp]
324-fqdn = hp.debian.or.jp
325-method = ftp
326-incoming = /pub/Incoming/upload
327-login = anonymous
328-
329 [ubuntu]
330 fqdn = upload.ubuntu.com
331 method = ftp
332
333=== modified file 'ftp.py'
334--- ftp.py 2009-06-18 13:28:09 +0000
335+++ ftp.py 2013-12-10 22:42:10 +0000
336@@ -53,6 +53,7 @@
337 size=size)
338 # print without linefeed
339 sys.stdout.write(" Uploading %s: "% package_name)
340+ sys.stdout.flush()
341 ftp_connection.storbinary('STOR ' + package_name, \
342 f, 1024)
343 f.close()
344
345=== modified file 'http.py'
346--- http.py 2013-05-26 00:34:14 +0000
347+++ http.py 2013-12-10 22:42:10 +0000
348@@ -29,6 +29,7 @@
349 self.url = url
350 self.resp_headers = resp_headers
351 self.authhandlers = []
352+ self.timeout = {}
353 # digest untested
354 for authhandler_class in [urllib2.HTTPBasicAuthHandler, urllib2.HTTPDigestAuthHandler]:
355 ah = authhandler_class(pwman)
356@@ -38,10 +39,12 @@
357 # fake request methods
358 def add_header(self, k, v):
359 self.headers[k] = v
360+ def add_unredirected_header(self, k, v):
361+ self.headers[k] = v
362 def get_full_url(self):
363 return self.url
364 # fake parent method
365- def open(self,*args):
366+ def open(self,*args,**keywords):
367 pass
368
369 # and what we really want

Subscribers

People subscribed via source and target branches

to all changes: