Mailinglist Archive: opensuse-buildservice (120 mails)

< Previous Next >
Re: [opensuse-buildservice] [gsoc] osc code cleanup - summary of week 6
On Monday 04 July 2011 14:15:07 Marcus Hüwe wrote:
Hi,

here's a small summary of the 6th (coding) week. Unfortunately I had
to spent more time with university stuff than I expected - that's why
I didn't finish the complete todo for this week.
I did some code restructuring and started to work on the class for the
source route.

TODO:
- rewrite the project and package working copy classes:
* the new working copy format will be incompatible with the current
format.
* the basic layout will look like this:
prj

---> .osc/ (stores prj _and_ pkg metadata)

---> pkg1

---> <files>
...

---> pkgN

---> <files>

So all metadata is stored in the prj/.osc dir instead of
prj/pkg/.osc
The advantage is that we can support a complete package
"restore" (without the need to download the package again):
cd prj; rm -r pkg; osc revert/restore pkg;
(that's possible because the metadata is stored in the prj/.osc
dir).
* to convert old project/package working copies to the new format
the "osc repairwc" command can be used (at least that's the plan)
One thing, IMO it's better if there is no such command as 'repairwc' at all.
It the wc is broken, osc should ideally know why. Whether that can always be
achieved is a different matter, but this case is rather clear.
--
Mit freundlichen Grüßen,
Sascha Peilicke
< Previous Next >
References