Hi,

Ming Hua wrote:
[...]
Downloading http://bugs.debian.org/434180 ... mkdir 434180/17-1: File
exists at /usr/bin/bts line 2430
[...]
As far as I can see, there are a few options for fixing this:

a) bail out with a more useful error message
b) skip the file with a useful warning message
c) download the file using the existing filename, again with a useful
warning message
d) delete the existing file and continue with the mkdir and download

I've implemented option c - a warning message is printed, and the "broken" filename used in place of the generated filename. In the case of your example, this gives:

[EMAIL PROTECTED]:~/debian/packages/devscripts/svn/trunk$ scripts/bts.pl -f --cache-mode=full cache 434180 Downloading http://bugs.debian.org/434180 ... bts: failed to download bugreport.cgi?msg=4;mbox=yes;bug=434180, skipping
bts: failed to download bugreport.cgi?msg=9;mbox=yes;bug=434180, skipping
bts: failed to download bugreport.cgi?msg=16;mbox=yes;bug=434180, skipping
bts: found file where directory expected; using existing file (434180/17-1)

and so on.

Regards,

Adam



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to