Date: Sun, 14 Jul 2013 17:53:13 +0100 (BST) From: Matt Windsor <mbw500@york.ac.uk> To: soc-status@freebsd.org Cc: jmuniz@freebsd.org, eadler@freebsd.org Subject: GSoC status - Week 4 Message-ID: <alpine.BSF.2.00.1307141730330.2244@cavalier> In-Reply-To: <alpine.BSF.2.00.1307070452090.2244@cavalier> References: <alpine.BSF.2.00.1306301724190.1671@cavalier> <alpine.BSF.2.00.1307070452090.2244@cavalier>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi again, A slightly less productive week this time, in that RemovePackages has been implemented in its most basic form (none of the flags sent to the backend_remove_packages function work yet). I'll probably investigate how to provide or properly step around the other functionality when the week I earmarked for remote updates comes up, as that was implemented last week. Most of the work this week has been, as ever, shuffling what already exists to accommodate more functionality. Jobs and searches are now somewhat abstracted (indeed, currently the main difference between installing and removing is changing around the job type and failure error enums, and the difference between group and name search is mainly passing a different match string and field requirements to the same "search and emit package matches via PackageKit" function. Another notable changeset this week is the way group matches to port categories work: - When matching against packages, the first pkg_category will be used if available, with a fallback to the old behaviour of snipping the port directory off the origin and matching that; (To be tested) - The group-category mapping is now stored in a whitespace-delimited text file, backends/groups, as opposed to living in C source. Currently, this is massaged by a sort/awk pipeline into becoming a C array; if I can figure out where to place the file in the filesystem, this could become a runtime read instead; - The mapping is now bsearch'd instead of linearly searched, which probably saves precious nanoseconds of time =D All in all, not an amazingly eventful week. Here's to next week being hopefully more productive... (Story so far: the PackageKit backend can currently search groups and names, retrieve details of packages by ID or name, install some packages with a few bugs, remove packages with no autoremove/other features implemented yet, list repositories, and list files of installed packages. Very little formal testing yet and lots of bugs and deficiencies here and there, hopefully the second term of GSoC will see a lot of testing and bug squashing.) ~Matt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1307141730330.2244>