razor2.git/.git
16 years agoSet RPM_INSTALL_PREFIX{n} in preun as well
J. Ali Harlow [Mon, 6 Jul 2009 17:19:13 +0000]
Set RPM_INSTALL_PREFIX{n} in preun as well

16 years agoFormally fork in preparation for release
J. Ali Harlow [Sat, 4 Jul 2009 10:11:59 +0000]
Formally fork in preparation for release

16 years agoGo back to having all info in one rzdb file.
Kristian Høgsberg [Fri, 3 Jul 2009 18:06:29 +0000]
Go back to having all info in one rzdb file.

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.

16 years agoSupport RPM_INSTALL_PREFIX{n} during uninstall
J. Ali Harlow [Fri, 3 Jul 2009 17:02:33 +0000]
Support RPM_INSTALL_PREFIX{n} during uninstall

16 years agoTest uninstall scripts survive merge
J. Ali Harlow [Thu, 2 Jul 2009 10:31:45 +0000]
Test uninstall scripts survive merge

16 years agoSupport empty scripts
J. Ali Harlow [Thu, 2 Jul 2009 10:31:03 +0000]
Support empty scripts

17 years agoAdd basic support for uninstall scripts.
J. Ali Harlow [Fri, 12 Jun 2009 15:59:11 +0000]
Add basic support for uninstall scripts.
RPM_INSTALL_PREFIX{n} is not yet supported and upgrading a package
where an uninstall script changes may need more work to ensure the
old script doesn't get included in the merged set (when it is too
late to remove). I haven't yet tested whether this is a real problem.

17 years agoAdd automatic provides for lua pre-loaded modules
J. Ali Harlow [Wed, 3 Jun 2009 07:26:09 +0000]
Add automatic provides for lua pre-loaded modules

17 years agoOrder the installation and removal of packages correctly so scripts can run
J. Ali Harlow [Thu, 14 May 2009 04:55:19 +0000]
Order the installation and removal of packages correctly so scripts can run

17 years agoTake advantage of gcc's builtin implementation of ffs under mingw
J. Ali Harlow [Thu, 14 May 2009 04:51:05 +0000]
Take advantage of gcc's builtin implementation of ffs under mingw

17 years agoFix documentation typo
J. Ali Harlow [Thu, 14 May 2009 04:50:37 +0000]
Fix documentation typo

17 years agoAdd support for topological sorting (needed to order transactions)
J. Ali Harlow [Sat, 9 May 2009 20:30:22 +0000]
Add support for topological sorting (needed to order transactions)

17 years agoAdd very basic support for removing packages
J. Ali Harlow [Fri, 1 May 2009 15:48:47 +0000]
Add very basic support for removing packages

17 years agoSet RPM_INSTALL_PREFIX{n} environment variables for use in scripts
J. Ali Harlow [Fri, 1 May 2009 15:43:37 +0000]
Set RPM_INSTALL_PREFIX{n} environment variables for use in scripts

17 years agoAdd support for preloading lua modules. This is useful both when
J. Ali Harlow [Wed, 29 Apr 2009 16:00:01 +0000]
Add support for preloading lua modules. This is useful both when
providing lua bindings to applications based on librazor and when
producing static binaries using librazor (where otherwise the lua
POSIX library would need to be included as an additional dynamic
object).

17 years agoEnsure ssize_t is declared before we use it
J. Ali Harlow [Wed, 22 Apr 2009 15:27:11 +0000]
Ensure ssize_t is declared before we use it

17 years agoAdd support for named roots so that we can understand MS-Windows paths
J. Ali Harlow [Wed, 22 Apr 2009 14:09:17 +0000]
Add support for named roots so that we can understand MS-Windows paths
such as c:/windows. Without this, the user always has to ensure they
are on the correct drive before running razor.

17 years agoMake 0 a valid hashtable value consistently (and 0xFFFFFFFF invalid).
J. Ali Harlow [Fri, 17 Apr 2009 22:08:11 +0000]
Make 0 a valid hashtable value consistently (and 0xFFFFFFFF invalid).

17 years agoAdd hashtable test to expose confusion as to whether 0 is a valid value or not
J. Ali Harlow [Fri, 17 Apr 2009 20:09:55 +0000]
Add hashtable test to expose confusion as to whether 0 is a valid value or not

17 years agoAvoid use of legacy rpm library types
J. Ali Harlow [Thu, 12 Mar 2009 20:52:12 +0000]
Avoid use of legacy rpm library types

17 years agoDon't list libcurl as a requirement in the .pc file
J. Ali Harlow [Thu, 12 Mar 2009 20:23:35 +0000]
Don't list libcurl as a requirement in the .pc file
since it's not needed by librazor.

17 years agoGenerate dynamic library on MS-Windows
J. Ali Harlow [Thu, 12 Mar 2009 20:22:52 +0000]
Generate dynamic library on MS-Windows

17 years agoRefactor run_script for improved readability
J. Ali Harlow [Sat, 14 Feb 2009 11:35:32 +0000]
Refactor run_script for improved readability

17 years agoImplement lua scripts with support for standard and posix libraries.
J. Ali Harlow [Thu, 5 Feb 2009 22:43:29 +0000]
Implement lua scripts with support for standard and posix libraries.

17 years agoImplement relocatations when installing rpms.
J. Ali Harlow [Thu, 22 Jan 2009 22:54:45 +0000]
Implement relocatations when installing rpms.

17 years agoFix bug causing "razor remove" to quietly fail.
J. Ali Harlow [Wed, 14 Jan 2009 12:21:38 +0000]
Fix bug causing "razor remove" to quietly fail.

17 years agoFix bug causing "razor list-files" to fail to see any files.
J. Ali Harlow [Wed, 14 Jan 2009 11:48:50 +0000]
Fix bug causing "razor list-files" to fail to see any files.

17 years agoFix bug causing merger to place file names in the main string pool
J. Ali Harlow [Wed, 14 Jan 2009 11:47:55 +0000]
Fix bug causing merger to place file names in the main string pool
rather than the files string pool.

17 years agoDon't try and stat the installation root if it's the empty string.
J. Ali Harlow [Tue, 13 Jan 2009 17:04:51 +0000]
Don't try and stat the installation root if it's the empty string.

17 years agoCope with the non-atomic behaviour of rename on MS-Windows
J. Ali Harlow [Mon, 12 Jan 2009 18:53:02 +0000]
Cope with the non-atomic behaviour of rename on MS-Windows
and add some error checking to razor_set_commit.

17 years agoTreat razor data files as binary consistently
J. Ali Harlow [Mon, 12 Jan 2009 17:54:13 +0000]
Treat razor data files as binary consistently

17 years agoGenerate razor.pc in line with details determined during config
J. Ali Harlow [Mon, 12 Jan 2009 16:37:55 +0000]
Generate razor.pc in line with details determined during config

17 years agoInclude test.xml in the distribution since it is needed for make check.
J. Ali Harlow [Fri, 9 Jan 2009 18:59:38 +0000]
Include test.xml in the distribution since it is needed for make check.

17 years agoAdd some error checking and reporting for writing upstream data
J. Ali Harlow [Fri, 9 Jan 2009 17:34:15 +0000]
Add some error checking and reporting for writing upstream data
after import from yum.

17 years agoClose files before deleting them for compatibility with MS-Windows
J. Ali Harlow [Fri, 9 Jan 2009 16:35:09 +0000]
Close files before deleting them for compatibility with MS-Windows

17 years agoUse CSIDL on MS-Windows platforms instead of FHS paths.
J. Ali Harlow [Fri, 9 Jan 2009 15:28:50 +0000]
Use CSIDL on MS-Windows platforms instead of FHS paths.

17 years agoAvoid use of non-standard %m printf conversion code.
J. Ali Harlow [Fri, 9 Jan 2009 12:32:57 +0000]
Avoid use of non-standard %m printf conversion code.
Also switch to the more conventional ": <error>"
format allowing us to use perror() in more places.

17 years agoProvide a program_name global variable as required by gnulib to
J. Ali Harlow [Thu, 8 Jan 2009 17:50:04 +0000]
Provide a program_name global variable as required by gnulib to
avoid the need for all programs that use librazor to do so.

17 years agoReplace call to random() with the more portable rand() since we
J. Ali Harlow [Thu, 8 Jan 2009 17:36:50 +0000]
Replace call to random() with the more portable rand() since we
don't have any need for a "good" random number generator.

17 years agoUse fsync from gnulib for portability
J. Ali Harlow [Thu, 8 Jan 2009 17:29:31 +0000]
Use fsync from gnulib for portability

17 years agoLink to winsock2 under mingw (needed for ntohl).
J. Ali Harlow [Thu, 8 Jan 2009 17:12:28 +0000]
Link to winsock2 under mingw (needed for ntohl).

17 years agoAdd an early include of config.h as required by gnulib
J. Ali Harlow [Thu, 8 Jan 2009 16:54:05 +0000]
Add an early include of config.h as required by gnulib

17 years agoRemove another unnecessary include of sys/mman.h
J. Ali Harlow [Thu, 8 Jan 2009 15:44:43 +0000]
Remove another unnecessary include of sys/mman.h

17 years agoUse gnulib with the razor binary for portability (for fnmatch in particular).
J. Ali Harlow [Thu, 8 Jan 2009 15:36:35 +0000]
Use gnulib with the razor binary for portability (for fnmatch in particular).

17 years agoRemove unnecessary include of sys/mman.h
J. Ali Harlow [Thu, 8 Jan 2009 15:22:34 +0000]
Remove unnecessary include of sys/mman.h

17 years agoOnly include sys/wait.h on platforms that have it.
J. Ali Harlow [Thu, 8 Jan 2009 15:18:01 +0000]
Only include sys/wait.h on platforms that have it.

17 years agoInclude winsock.h rather than arpa/inet.h on mingw platforms.
J. Ali Harlow [Thu, 8 Jan 2009 15:08:08 +0000]
Include winsock.h rather than arpa/inet.h on mingw platforms.
Also fix a trivial int/long mismatch.

17 years agoDon't attempt to use chroot() on systems that don't support it.
J. Ali Harlow [Thu, 8 Jan 2009 14:35:18 +0000]
Don't attempt to use chroot() on systems that don't support it.

This has the added bonus of allowing us to use popen() rather than
fork()/exec() for improved portability. Of course, the loss of an
install root is a major reduction of functionality but it's hard to
see what else we could substitute for chroot().

17 years agoDon't try and create symbolic links on platforms that don't support symlink()
J. Ali Harlow [Thu, 8 Jan 2009 13:51:07 +0000]
Don't try and create symbolic links on platforms that don't support symlink()

17 years agoSupport platforms where mkdir only takes one argument (eg., MS-Windows)
J. Ali Harlow [Wed, 7 Jan 2009 18:00:06 +0000]
Support platforms where mkdir only takes one argument (eg., MS-Windows)

17 years agoInclude limits.h in files which used PATH_MAX for portability
J. Ali Harlow [Wed, 7 Jan 2009 17:59:12 +0000]
Include limits.h in files which used PATH_MAX for portability

17 years agoAvoid unportable "uint" type
J. Ali Harlow [Wed, 7 Jan 2009 17:26:33 +0000]
Avoid unportable "uint" type

17 years agoAdd support for platforms without fnmatch.
J. Ali Harlow [Wed, 7 Jan 2009 17:17:10 +0000]
Add support for platforms without fnmatch.

This uses gnulib so you will need to have a copy in order
to run autogen.sh (but not to build from a tarball). Either
arrange for gnulib-tool to be in your path or set the
environment variable GNULIB_TOOL to point to its location.

17 years agoSupport platforms without mmap
J. Ali Harlow [Tue, 6 Jan 2009 17:33:37 +0000]
Support platforms without mmap

17 years agoMake curl an optional dependancy
J. Ali Harlow [Tue, 6 Jan 2009 16:00:32 +0000]
Make curl an optional dependancy

17 years agoMake rpmlib an optional dependency
J. Ali Harlow [Tue, 6 Jan 2009 14:06:00 +0000]
Make rpmlib an optional dependency

Use configure --without-rpm to avoid the dependency (default is unchanged).

17 years agoReduce intltool requirements to version 0.35 for compatibility with Centos 5
J. Ali Harlow [Mon, 5 Jan 2009 17:39:05 +0000]
Reduce intltool requirements to version 0.35 for compatibility with Centos 5

17 years agoUse strings to identify section types in the on-disk repo format.
James Bowes [Wed, 9 Jul 2008 12:16:08 +0000]
Use strings to identify section types in the on-disk repo format.

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".

17 years agoConvert main.c to use razor_root for most cases.
Kristian Høgsberg [Wed, 9 Jul 2008 02:57:34 +0000]
Convert main.c to use razor_root for most cases.

With this we change the default repo location to /var/lib/razor, but let the env
variable RAZOR_ROOT override it.

17 years agoChange the install iterator API to what we want.
Kristian Høgsberg [Wed, 9 Jul 2008 02:02:58 +0000]
Change the install iterator API to what we want.

17 years agoAlways open all three rzdb files when we're merging package sets.
Kristian Høgsberg [Wed, 9 Jul 2008 01:59:36 +0000]
Always open all three rzdb files when we're merging package sets.

17 years agoFix old typo in file merging code.
Kristian Høgsberg [Wed, 9 Jul 2008 01:56:48 +0000]
Fix old typo in file merging code.

17 years agoUse the file string pool when merging directories.
Kristian Høgsberg [Wed, 9 Jul 2008 01:55:56 +0000]
Use the file string pool when merging directories.

17 years agoRename a couple more .repo references.
Kristian Høgsberg [Wed, 2 Jul 2008 18:39:44 +0000]
Rename a couple more .repo references.

17 years agoMove DEPSOLVE.txt and REPO.txt into docbook.
Kristian Høgsberg [Wed, 2 Jul 2008 18:35:58 +0000]
Move DEPSOLVE.txt and REPO.txt into docbook.

A little messy, but it's a first step towards pulling all the docs into
a nice self-contained document.

17 years agorename the .repo files to .rzdb files
Richard Hughes [Wed, 2 Jul 2008 17:46:47 +0000]
rename the .repo files to .rzdb files

17 years agoDocument the razor_importer API.
Kristian Høgsberg [Tue, 1 Jul 2008 14:49:48 +0000]
Document the razor_importer API.

17 years agoUpdate docs for the RAZOR_DETAIL_LAST change.
Kristian Høgsberg [Tue, 1 Jul 2008 13:44:46 +0000]
Update docs for the RAZOR_DETAIL_LAST change.

17 years agoconvert the NULL sentinel to RAZOR_DETAIL_LAST
Richard Hughes [Tue, 1 Jul 2008 08:22:25 +0000]
convert the NULL sentinel to RAZOR_DETAIL_LAST

17 years agoGet rid of razor_set_get_package().
Kristian Høgsberg [Mon, 30 Jun 2008 02:38:57 +0000]
Get rid of razor_set_get_package().

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.

17 years agoTweak razor search a bit: casefold, print summary, search rawhide instead.
Kristian Høgsberg [Mon, 30 Jun 2008 02:03:13 +0000]
Tweak razor search a bit: casefold, print summary, search rawhide instead.

17 years agothe vararg list must be terminated with zero else 64bit machines may crash
Richard Hughes [Mon, 30 Jun 2008 09:46:20 +0000]
the vararg list must be terminated with zero else 64bit machines may crash

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.

17 years agotrivial: razor_property_iterator_create() can have package NULL and be valid
Richard Hughes [Mon, 30 Jun 2008 08:47:32 +0000]
trivial: razor_property_iterator_create() can have package NULL and be valid

17 years agoconvert razor_package_get_details() and razor_package_iterator_next() to varargs
Richard Hughes [Mon, 30 Jun 2008 07:51:26 +0000]
convert razor_package_get_details() and razor_package_iterator_next() to varargs

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.

17 years agoprotect all exported functions by checking the input parameters for NULL input
Richard Hughes [Sun, 29 Jun 2008 16:32:19 +0000]
protect all exported functions by checking the input parameters for NULL input

17 years agoadd missing licencing information at the top of each source file
Richard Hughes [Sun, 29 Jun 2008 09:55:17 +0000]
add missing licencing information at the top of each source file

The licence text is needed when razor is packaged for Debian. :-)

17 years agoRemove a couple of done TODO items.
Kristian Høgsberg [Sun, 29 Jun 2008 00:34:29 +0000]
Remove a couple of done TODO items.

17 years agoMerge commit 'fdo/master'
Kristian Høgsberg [Sat, 28 Jun 2008 23:22:55 +0000]
Merge commit 'fdo/master'

17 years agoRevert "Get api docs building"
Kristian Høgsberg [Sat, 28 Jun 2008 22:27:55 +0000]
Revert "Get api docs building"

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.

17 years agoAdd more gtk-doc artifacts to gitignore
James Bowes [Fri, 27 Jun 2008 00:49:11 +0000]
Add more gtk-doc artifacts to gitignore

17 years agoAdd 'search' command
James Bowes [Thu, 26 Jun 2008 23:11:36 +0000]
Add 'search' command

17 years agoSave the details and files repo files when importing a dir of rpms
James Bowes [Thu, 26 Jun 2008 22:41:55 +0000]
Save the details and files repo files when importing a dir of rpms

17 years agoAdd import-rpms to bash-completion
James Bowes [Thu, 26 Jun 2008 22:39:37 +0000]
Add import-rpms to bash-completion

17 years agoget rpm -qpi working fully
James Bowes [Thu, 26 Jun 2008 22:15:59 +0000]
get rpm -qpi working fully

17 years agoAdd return codes to razor_set_open_files and open_details
James Bowes [Thu, 26 Jun 2008 21:16:13 +0000]
Add return codes to razor_set_open_files and open_details

17 years agoGet api docs building
James Bowes [Thu, 26 Jun 2008 14:37:45 +0000]
Get api docs building

17 years agoAdd missing newline for conflicts output
James Bowes [Thu, 26 Jun 2008 13:21:14 +0000]
Add missing newline for conflicts output

17 years agoinclude stdint.h in razor.h to fix an error
Richard Hughes [Thu, 26 Jun 2008 06:17:48 +0000]
include stdint.h in razor.h to fix an error

This fixes the error: /usr/include/razor/razor.h:161: error: expected declaration specifiers or '...' before 'uint32_t'

17 years agoUpdate gitignore files for docs and test-driver
James Bowes [Thu, 26 Jun 2008 01:11:33 +0000]
Update gitignore files for docs and test-driver

17 years agoGet the test driver compiling and running again (but not passing).
James Bowes [Thu, 26 Jun 2008 00:53:48 +0000]
Get the test driver compiling and running again (but not passing).

17 years agoAllow NULL pointers in razor_package_get_details().
Richard Hughes [Wed, 25 Jun 2008 19:31:50 +0000]
Allow NULL pointers in razor_package_get_details().

17 years agoFix pkg-config file problems.
Kristian Høgsberg [Wed, 25 Jun 2008 19:29:49 +0000]
Fix pkg-config file problems.

It's libcurl, and expat doesn't have a pkg-config file.

17 years agoAlso don't explode when a given path doesn't exist.
Kristian Høgsberg [Wed, 25 Jun 2008 15:48:46 +0000]
Also don't explode when a given path doesn't exist.

17 years agoDon't explode when listing files.
Richard Hughes [Wed, 25 Jun 2008 15:44:54 +0000]
Don't explode when listing files.

17 years agoFactor out package selection and listing in main.c.
Kristian Høgsberg [Wed, 25 Jun 2008 15:24:55 +0000]
Factor out package selection and listing in main.c.

17 years agoError out if package isn't found instead of listing all properties.
Richard Hughes [Wed, 25 Jun 2008 15:00:25 +0000]
Error out if package isn't found instead of listing all properties.

17 years agoFor rpm --query, --requires is also -R
James Bowes [Tue, 24 Jun 2008 01:38:33 +0000]
For rpm --query, --requires is also -R

17 years agoCreate an empty package iterator when we don't know about the given file.
James Bowes [Tue, 24 Jun 2008 01:20:16 +0000]
Create an empty package iterator when we don't know about the given file.

This is an easy way to stop segfaults when trying to destroy iterators for
unknown files.

17 years agoImplement rpm --query --file
James Bowes [Tue, 24 Jun 2008 00:48:48 +0000]
Implement rpm --query --file

17 years agoDisplay razor version number for rpm --version
James Bowes [Tue, 24 Jun 2008 00:20:08 +0000]
Display razor version number for rpm --version