Home Home > 2011 > 07 > 04
Sign up | Login

Deprecation notice: openSUSE Lizards user blog platform is deprecated, and will remain read only for the time being. Learn more...

Archive for July 4th, 2011

[gsoc] osc code cleanup – summary of week 6

July 4th, 2011 by

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)

Feedback is always welcome.

Marcus