[debexpo-devel] issue 81: Repeated uploads fails without notification of uploader
Paul Wise
pabs at debian.org
Mon Feb 16 07:10:57 CET 2009
On Mon, Feb 16, 2009 at 8:25 AM, Serafeim Zanikolas <serzan at hellug.gr> wrote:
> wrt ticket #81, I would suggest that all relevant pre-existing files and
> packageFile objects in the database are removed before processing the new
> upload.
...
> The first approach sounds better. I'd like some feedback please before I work
> on it. Is there anything I'm missing?
We don't want to be in a situation where an upload failure (out of
disk or whatever) deleted the old files but didn't add the new ones.
So, perhaps rename the old files, put the new ones in place, update
the database (with a transaction) and then delete the old files?
--
bye,
pabs
http://wiki.debian.org/PaulWise
More information about the debexpo-devel
mailing list