Larrikinism

It is the Confession, not the Priest that gives us absolution

Archive | RSS
June 13, 2011 at 11:59am
Home

GSOC 2011: ssc - Week 3

This week I was working on the local storage feature of the client. As proposed we were going to add and remove packages, repositories and files with a git-like workflow. i.e. ssc package add gnuchess would make a local record of the intention to add that package and on ssc commit the changes would actually be pushed.

In order to facilitate this I’m abstracting all the directory management to a DirectoryManager module. Which abstracts methods to save, read and diff from local sources. Right now the syntax I’ve chosen is YAML. For instance the software file in the appliance directory - which catalogues the changes made to the appliance’s software - stores names of installed packages. Unless the ssc command is invoked with the -r | --remote option, it will display the packages in that file. In addition when ssc package add gnuchess is run with out the -r option, it will make and addition add gnuchess to the software file. Similarly for remove. I am having some problems figuring out how to integrate patterns into this architecture so any help on that front would be appreciated.

That’s it for this week. I’m going to be working on pretty much the same thing next week. Extending and refactoring this functionality. So hopefully we will have a more usable version then.

Thank you for reading.