2010-05-13 09:55:25 |
Michael Nelson |
description |
Currently, the schema for sourcepackagerecipe (and build) requires a reference to a sourcepackagename, but I think this assumes the package that the recipe is to build and upload has already been uploaded in the past, so that the sourcepackagename exists.
We could create the sourcepackagename records if they don't exist when the recipe is created, but it might pollute the namespace before an actual upload has happened. Could we instead store the proposed *string* sourcepackagename on the recipe (and recipe build)? This would enable the current infrastructure to find-or-create the sourcepackagename record when the upload is processed as normal. |
Currently, the schema for sourcepackagerecipe (and build) requires a reference to a sourcepackagename, but I think this assumes the package that the recipe is to build and upload has already been uploaded in the past, so that the sourcepackagename exists.
We could create the sourcepackagename records if they don't exist when the recipe is created, but it might pollute the namespace before an actual upload has happened. Could we instead store the proposed *string* sourcepackagename on the recipe (and recipe build)? This would enable the current infrastructure to find-or-create the sourcepackagename record when the upload is processed as normal.
Update: as per comment 6 below, we no-longer need to be asking for the source package name when creating a recipe.
|
|