summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2008-09-23Go back to having all info in one rzdb file.HEADmasterKristian Høgsberg2-38/+9
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-09-23Work with never librpm versions.Kristian Høgsberg1-3/+6
2008-07-10Fix rpm option parser to understand --root ROOT instead of --root=ROOT.Kristian Høgsberg1-7/+32
2008-07-09Pacify test case and make it work with builddir != srcdir.Kristian Høgsberg2-6/+15
Also remember to ship test.xml. Make distcheck now passes, but we need to make the test suite more useful.
2008-07-08Convert main.c to use razor_root for most cases.Kristian Høgsberg1-27/+35
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øgsberg1-19/+35
2008-07-08Always open all three rzdb files when we're merging package sets.Kristian Høgsberg1-1/+16
2008-07-02rename the .repo files to .rzdb filesRichard Hughes3-22/+23
2008-07-01convert the NULL sentinel to RAZOR_DETAIL_LASTRichard Hughes3-20/+42
2008-06-30Get rid of razor_set_get_package().Kristian Høgsberg3-27/+53
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-30Tweak razor search a bit: casefold, print summary, search rawhide instead.Kristian Høgsberg1-17/+15
2008-06-30the vararg list must be terminated with zero else 64bit machines may crashRichard Hughes2-20/+25
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-30convert razor_package_get_details() and razor_package_iterator_next() to varargsRichard Hughes2-30/+44
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-29add missing licencing information at the top of each source fileRichard Hughes1-0/+19
The licence text is needed when razor is packaged for Debian. :-)
2008-06-28Revert "Get api docs building"Kristian Høgsberg1-1/+1
Pass --enable-gtk-doc to ./configure to build API docs. Add a status print-out at the end of configure.ac to show whether gtk-doc was enabled. This reverts commit 436386fb11ee56e50c2c76c496b1f6c39530e170.
2008-06-26Add 'search' commandJames Bowes1-1/+48
2008-06-26Save the details and files repo files when importing a dir of rpmsJames Bowes1-0/+2
2008-06-26get rpm -qpi working fullyJames Bowes1-10/+10
2008-06-26Add return codes to razor_set_open_files and open_detailsJames Bowes2-7/+18
2008-06-25Update gitignore files for docs and test-driverJames Bowes1-0/+1
2008-06-25Get the test driver compiling and running again (but not passing).James Bowes3-27/+50
2008-06-25Factor out package selection and listing in main.c.Kristian Høgsberg1-43/+71
2008-06-25Error out if package isn't found instead of listing all properties.Richard Hughes1-2/+6
2008-06-23For rpm --query, --requires is also -RJames Bowes1-1/+1
2008-06-23Implement rpm --query --fileJames Bowes1-4/+17
2008-06-23Display razor version number for rpm --versionJames Bowes1-1/+3
2008-06-23Implement rpm --query --listJames Bowes1-4/+9
2008-06-23Nuke ARRAY_SIZE and obsolete razor_set_list_unsatisfied from razor.h.Kristian Høgsberg1-0/+2
2008-06-23Merge commit 'krh/master'James Bowes2-5/+25
2008-06-23Add some support for --info.Kristian Høgsberg1-4/+23
2008-06-23Don't install /usr/bin/rpm just yet...Kristian Høgsberg1-1/+2
2008-06-23Display progress when importing rpmsJames Bowes3-2/+24
2008-06-23Merge commit 'jbowes/master'Kristian Høgsberg4-8/+95
2008-06-20Return if we fail to open root.Kristian Høgsberg1-0/+3
2008-06-20Introduce install/remove iterators.Kristian Høgsberg1-64/+71
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-46/+36
The old proto type didn't let us pass the razor_package.
2008-06-20command_update: check the right return code to see if transaction failed.Kristian Høgsberg1-2/+5
2008-06-20Merge branch 'krh/master'James Bowes8-0/+3630
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øgsberg1-5/+6
2008-06-20Rename razor_importer_new to _create to follow convention.Kristian Høgsberg4-4/+4
2008-06-20Break up the monolithic razor.c.Kristian Høgsberg1-2/+5
2008-06-20Record the time of dependencies (post, pre, postun, preun).Kristian Høgsberg4-96/+93
2008-06-19Make razor install work again after the razor_root changes.Kristian Høgsberg1-3/+4
2008-06-16Autoconfify razor.Richard Hughes8-0/+3542