Your message dated Sat, 03 Jan 2009 10:17:03 +0000
with message-id <[email protected]>
and subject line Bug#481947: fixed in dput 0.9.2.37
has caused the Debian Bug report #481947,
regarding Continue if file exists on server
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
481947: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481947
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dput
Version: 0.9.2.32
Severity: wishlist
Hi,
Occasionally, an upload fails midway through a very large set of
packages; e.g. boost has 29 packages. Currently, I have to
"dcut" all the files uploaded before re-trying because dput
errors when a file cannot be created.
How about a --resume option to simply ignore such errors?
I've just tested the following patch to verify that the strategy
works. It needs to be improved such that resume_failed is set by a
command line switch.
diff -u -r dput-0.9.2.32/ftp.py dput-0.9.2.32-mod/ftp.py
--- dput-0.9.2.32/ftp.py 2008-05-01 13:56:34.000000000 -0500
+++ dput-0.9.2.32-mod/ftp.py 2008-05-19 12:58:36.000000000 -0500
@@ -2,6 +2,7 @@
# Upload the files via ftp. (Could need a bit more error-checking.)
def upload(fqdn, login, incoming, files_to_upload, debug, ftp_mode,
progress=0, port=21):
+ resume_failed = 1
try:
ftp_connection = ftplib.FTP()
ftp_connection.connect(fqdn, port)
@@ -61,6 +62,9 @@
except ftplib.all_errors, e:
print "\nError '%s' during ftp transfer of
%s"%(str(e),package_name)
if isinstance(e,ftplib.Error) and e.args and e.args[0][:3]=='553':
+ if (resume_failed):
+ print "Leaving existing file on server and continuing."
+ continue
print """Note: This problem might be caused by files already
existent on the server.
For the official Debian upload queues, the dcut(1) utility can be used
to remove stale files from unsuccessful uploads."""
In the documentation, you might note that it is prudent to dcut the
last file of the failed upload since it might be corrupt. But all
previous files should be OK.
Cheers,
-Steve
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages dput depends on:
ii gnupg 1.4.6-3 GNU privacy guard - a free PGP rep
ii python 2.5.2-1 An interactive high-level object-o
dput recommends no packages.
-- debconf information:
* dput/config-file-format:
--- End Message ---
--- Begin Message ---
Source: dput
Source-Version: 0.9.2.37
We believe that the bug you reported is fixed in the latest version of
dput, which is due to be installed in the Debian FTP archive:
dput_0.9.2.37.dsc
to pool/main/d/dput/dput_0.9.2.37.dsc
dput_0.9.2.37.tar.gz
to pool/main/d/dput/dput_0.9.2.37.tar.gz
dput_0.9.2.37_all.deb
to pool/main/d/dput/dput_0.9.2.37_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Y Giridhar Appaji Nag <[email protected]> (supplier of updated dput package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sat, 20 Dec 2008 17:42:10 +0530
Source: dput
Binary: dput
Architecture: source all
Version: 0.9.2.37
Distribution: unstable
Urgency: low
Maintainer: Y Giridhar Appaji Nag <[email protected]>
Changed-By: Y Giridhar Appaji Nag <[email protected]>
Description:
dput - Debian package upload tool
Closes: 481947 504614 507170
Changes:
dput (0.9.2.37) unstable; urgency=low
.
[ Y Giridhar Appaji Nag ]
* Remove "DM-Upload-Allowed: yes"
* Add "allow_dcut = 1" to the backports.org stanza (Closes: #507170)
* Thanks Cyril Brulebois <[email protected]> for miscellaneous usability
and documentation patches.
* Indicate 'Uploading ' for clarity when a file upload is to start.
Thanks "Nelson A. de Oliveira" <[email protected]> for the report and
Cyril Brulebois <[email protected]> for the suggestion (Closes: #504614)
* Continue despite an FTP 553 and indicate that the file may have been
uploaded partially. Based on a patch from "Steve M. Robbins"
<[email protected]> (Closes: #481947)
.
[ Thomas Viehmann ]
* debian/control: Doing most work makes Giridhar the maintainer.
That is awesome, thanks!
* Add Thanks to Thanks.
Checksums-Sha1:
1c8aabd5ee9f3094de0100cd7c03a22a8c980596 870 dput_0.9.2.37.dsc
1996ce2f48df49e6bc2fdfb6e5c1da80dc0149d7 47438 dput_0.9.2.37.tar.gz
a712b85a2d79dc46bf1dccb564b1a7cdd954290b 45052 dput_0.9.2.37_all.deb
Checksums-Sha256:
824475b8298711d5e16c7adeefa9ec7e42ce9e385184b951a8347771115b3976 870
dput_0.9.2.37.dsc
9d250a58405fd3595c03947f27000347640acc3fba1d9b4dd70cfe48cf0d3305 47438
dput_0.9.2.37.tar.gz
21d22184bb894e761cb084a83fa56b0c74ccb4e04d235aa12f385b402817f94c 45052
dput_0.9.2.37_all.deb
Files:
99f756bbaa75eb2aa10d8085f0ec61a5 870 devel optional dput_0.9.2.37.dsc
3242eecd6a6a1769f38c711c238a9d1c 47438 devel optional dput_0.9.2.37.tar.gz
aec9e4cd9ef61870f5c37e2c08e1cf50 45052 devel optional dput_0.9.2.37_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAklfNj8ACgkQ4eu+pR04mIdwngCdHG7JX0HKi7DAM5nlo/xgF7re
wRgAnRdLWID/5MnIxlDIdxj6BePMzN6w
=uySu
-----END PGP SIGNATURE-----
--- End Message ---