summaryrefslogtreecommitdiff
path: root/librazor
AgeCommit message (Collapse)AuthorFilesLines
2008-09-23Go back to having all info in one rzdb file.HEADmasterKristian Høgsberg4-216/+117
We can still split the rzdb file into a main file and a file data and a details file, but that's only for optimizing the required download size. On the system we always combine the parts back into one rzdb file once downloaded.
2008-07-09Use strings to identify section types in the on-disk repo format.James Bowes2-132/+115
Previously, a given razor file type had a fixed number of sections in a fixed order, identified by an integer type. Now, sections are identified by a named string (stored in a string pool after the section lists). This will allow for razor files to contain arbitrary sections. For bonus points, also drop the 4k section alignment and change the magic byte string to "RZDB".
2008-07-08Convert main.c to use razor_root for most cases.Kristian Høgsberg1-3/+41
With this we change the default repo location to /var/lib/razor, but let the env variable RAZOR_ROOT override it.
2008-07-08Change the install iterator API to what we want.Kristian Høgsberg2-40/+89
2008-07-08Always open all three rzdb files when we're merging package sets.Kristian Høgsberg1-1/+9
2008-07-08Fix old typo in file merging code.Kristian Høgsberg1-1/+1
2008-07-08Use the file string pool when merging directories.Kristian Høgsberg1-2/+2
2008-07-02rename the .repo files to .rzdb filesRichard Hughes1-4/+4
2008-07-01Document the razor_importer API.Kristian Høgsberg2-26/+132
2008-07-01Update docs for the RAZOR_DETAIL_LAST change.Kristian Høgsberg2-2/+2
2008-07-01convert the NULL sentinel to RAZOR_DETAIL_LASTRichard Hughes4-28/+32
2008-06-30Get rid of razor_set_get_package().Kristian Høgsberg2-29/+5
This was always a silly little helper function, not general enough for real world applications. Use an iterator to search through the set to find the package of interest.
2008-06-30the vararg list must be terminated with zero else 64bit machines may crashRichard Hughes4-19/+29
On 64 bit systems, the integer 0 is 32 bits and the pointer 0 is 64 bits. The upper 32 bits will not be cleared and the loop will never terminate. Also add the RAZOR_SENTINEL __attribute__ ((__sentinel__(0))) on GCC4 so we catch where we get this wrong automatically. This also fixes the new search functionality from James which was missed in the merge.
2008-06-30trivial: razor_property_iterator_create() can have package NULL and be validRichard Hughes1-1/+0
2008-06-30convert razor_package_get_details() and razor_package_iterator_next() to varargsRichard Hughes5-55/+171
The functions for getting package details about a package were limited to a few things, when in the future we will want to support much more about a package. The iterator was also limited to name,version,arch when most of the time we didn't need all this data.
2008-06-29protect all exported functions by checking the input parameters for NULL inputRichard Hughes5-0/+115
2008-06-29add missing licencing information at the top of each source fileRichard Hughes4-0/+76
The licence text is needed when razor is packaged for Debian. :-)
2008-06-28Merge commit 'fdo/master'Kristian Høgsberg1-4/+8
2008-06-26get rpm -qpi working fullyJames Bowes1-1/+9
2008-06-26Add return codes to razor_set_open_files and open_detailsJames Bowes2-8/+12
2008-06-26Add missing newline for conflicts outputJames Bowes1-1/+2
2008-06-26include stdint.h in razor.h to fix an errorRichard Hughes1-0/+2
This fixes the error: /usr/include/razor/razor.h:161: error: expected declaration specifiers or '...' before 'uint32_t'
2008-06-25Get the test driver compiling and running again (but not passing).James Bowes2-2/+4
2008-06-25Allow NULL pointers in razor_package_get_details().Richard Hughes1-4/+8
2008-06-25Also don't explode when a given path doesn't exist.Kristian Høgsberg1-1/+1
2008-06-25Don't explode when listing files.Richard Hughes1-0/+3
2008-06-23Create an empty package iterator when we don't know about the given file.James Bowes1-1/+8
This is an easy way to stop segfaults when trying to destroy iterators for unknown files.
2008-06-23Implement rpm --query --fileJames Bowes1-0/+9
2008-06-23Make file listing (either per-repo or per-package) use the correct string poolJames Bowes1-2/+2
2008-06-23Save all 3 repo files on razor_root_createJames Bowes1-2/+11
2008-06-23Nuke ARRAY_SIZE and obsolete razor_set_list_unsatisfied from razor.h.Kristian Høgsberg2-6/+2
2008-06-23Move a couple of unrelated functions out of transaction.c.Kristian Høgsberg2-41/+41
2008-06-23Use GCC 4 -fvisibility to control exported symbols.Kristian Høgsberg7-62/+72
2008-06-23Merge commit 'krh/master'James Bowes1-1/+1
2008-06-23Actually store the files strings in the files string poolJames Bowes2-3/+6
2008-06-23Compare the right index against pq->count.Kristian Høgsberg1-1/+1
Fix a little logic error there.
2008-06-23Set up gtkdoc for razor.Kristian Høgsberg2-26/+105
Despite its name, gtkdoc doesn't require gtk+ and is a nice way to generate DocBook format API documentation.
2008-06-23Merge commit 'jbowes/master'Kristian Høgsberg6-29/+210
2008-06-20When uniquifying properties, also sort them on the owning package.Kristian Høgsberg2-2/+6
This ensures that whenever two packages provide or (or require, obsolete or conflict) the same property, they appear in the same order in the propertys list of packages.
2008-06-20Call exit() instead of just returning if child fails.Kristian Høgsberg1-3/+3
2008-06-20Introduce install/remove iterators.Kristian Høgsberg2-0/+58
These iterator constructors lets you pass in two sets and creates an iterator for the packages to remove or the packages to install. The iterators will step through the packages in a sequence that respects the pre, post, preun and postun modifiers. Right now, the install order isn't actually implemented, this patch just implements the API changes and updates the applications.
2008-06-20Fix the razor_set_diff() callback prototype.Kristian Høgsberg2-10/+19
The old proto type didn't let us pass the razor_package.
2008-06-20Fix package queries for empty sets.Kristian Høgsberg1-4/+7
2008-06-20Merge branch 'krh/master'James Bowes13-0/+4658
Conflicts: librazor/razor.h librazor/rpm.c razor.c src/main.c
2008-06-20Add getter to return system set for a razor_root.Kristian Høgsberg2-34/+22
2008-06-20Rename razor_importer_new to _create to follow convention.Kristian Høgsberg2-2/+2
2008-06-20Break up the monolithic razor.c.Kristian Høgsberg11-2253/+2367
2008-06-20Record the time of dependencies (post, pre, postun, preun).Kristian Høgsberg3-135/+183
2008-06-19Handle NULL dirnames when importing rpms into a set.Kristian Høgsberg1-1/+5
2008-06-16Don't fail to update if there is not older package found.Kristian Høgsberg1-4/+4