[debexpo-devel] issue 81: Repeated uploads fails without notification of uploader

Serafeim Zanikolas serzan at hellug.gr
Mon Feb 16 00:25:22 CET 2009


Hi,

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.

However if we do it that way, and the import of the latest uploaded files
fails, we end up with the database having a package without any packageFile
objects (which isn't that bad, because that'd be consistent with what's on the
filesystem). We'd also have to modify the currently "insert package records"
logic to "insert records if they're not already in place for the given
package".

The alternative would be to delete all records related to the package before
the import, but then we'd lose the comments for the previous uploads (and we'd
have to keep deleting and re-inserting the same package objects, instead of
only packageFile objects, on every re-upload).

The first approach sounds better. I'd like some feedback please before I work
on it. Is there anything I'm missing?

Cheers,
Serafeim


More information about the debexpo-devel mailing list