[Python-modules-team] Bug#654690: /usr/bin/rst2html: don't overwrite (non .html files) by default
Karl Goetz
karl at kgoetz.id.au
Thu Jan 5 23:20:54 UTC 2012
On Thu, 5 Jan 2012 22:00:45 +0100
Jakub Wilk <jwilk at debian.org> wrote:
> * Karl Goetz <karl at kgoetz.id.au>, 2012-01-05, 20:54:
> >Please require an option before rst2html will overwrite an existing
> >>file. I just ran 'rst2html *ipv6*.rst' without realising i had two
> >>>files containing ipv6 in the name. The second file was turned into
> >>>>html, and its rst contents lost.
>
> Overwriting the output file is the behaviour some people (including
> me) rely on. You said "(non .html files)" in the subject, but how
I'm sure, it wouldn't behave that way if no one wanted it to do so.
fwiw, an option to say 'ask before overwriting' would suite me just as
well (ala cp/mv with -i).
> would docutils decide if the output file is a ".html file" or not?
I assumed by its mime type.
thanks,
kk
--
Karl Goetz, (Kamping_Kaiser / VK7FOSS)
http://www.kgoetz.id.au
No, I won't join your social networking group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120106/2a7d1e2b/attachment-0003.pgp>
More information about the Python-modules-team
mailing list