razor2.git/.git
18 years agoremove some unused code
Dan Winship [Fri, 15 Feb 2008 14:31:20 +0000]
remove some unused code

18 years ago(trivial optimization)
Dan Winship [Thu, 14 Feb 2008 15:35:25 +0000]
(trivial optimization)

18 years agoadd a missing comparison to ensure correct repo sorting
Dan Winship [Thu, 14 Feb 2008 15:35:10 +0000]
add a missing comparison to ensure correct repo sorting

18 years agoSplit razor_package and razor_entry names into name and flags
Dan Winship [Mon, 11 Feb 2008 16:57:47 +0000]
Split razor_package and razor_entry names into name and flags

18 years agosplit razor_property.name into name, flags, and type bitfields
Dan Winship [Mon, 11 Feb 2008 16:21:54 +0000]
split razor_property.name into name, flags, and type bitfields

18 years agoChange list flags back to 8 bits instead of just 2
Dan Winship [Mon, 11 Feb 2008 14:50:17 +0000]
Change list flags back to 8 bits instead of just 2

18 years agoimprove the list abstraction with "struct list_head" and "struct list"
Dan Winship [Fri, 8 Feb 2008 19:39:34 +0000]
improve the list abstraction with "struct list_head" and "struct list"

both structs are actually just uint32_t's in disguise, using bitfields
to avoid the need for explicit bit operations, and using two type names
to hide the RAZOR_IMMEDIATE hack from the public API

18 years agoAdd a list abstraction for package/property lists
Dan Winship [Fri, 8 Feb 2008 16:19:36 +0000]
Add a list abstraction for package/property lists

18 years agosplit array and hashtable code out into a new file
Dan Winship [Thu, 7 Feb 2008 14:58:48 +0000]
split array and hashtable code out into a new file

18 years agoclean up some duplicated code around calls to add_to_property_pool
Dan Winship [Wed, 6 Feb 2008 18:02:50 +0000]
clean up some duplicated code around calls to add_to_property_pool

18 years agopad repo files with 0 bytes, not random memory
Dan Winship [Wed, 6 Feb 2008 17:59:27 +0000]
pad repo files with 0 bytes, not random memory

so you can do:
  ./razor import-yum
  mv rawhide.repo rawhide.repo.orig
  make
  ./razor import-yum
  diff rawhide.repo.orig rawhide.repo

(doesn't work with system.repo at the moment...)

18 years agofix dependencies
Dan Winship [Wed, 6 Feb 2008 17:37:49 +0000]
fix dependencies

18 years agos/import/yum/
Dan Winship [Tue, 5 Feb 2008 17:14:50 +0000]
s/import/yum/

18 years agoupdate
Dan Winship [Tue, 5 Feb 2008 17:02:53 +0000]
update

18 years agoSupport for less/equal/greater version in requires/conflicts, etc
Dan Winship [Mon, 4 Feb 2008 19:25:45 +0000]
Support for less/equal/greater version in requires/conflicts, etc

Add less/equal/greater information to razor_property, and update
importers and other code.

Move the rpm importer from import.c to rpm.c to avoid code
duplication, and then rename import.c to yum.c since that's all that's
left.

18 years agoFix repo format on x86_64 by using uint32_t instead of unsigned long
Dan Winship [Mon, 4 Feb 2008 15:46:29 +0000]
Fix repo format on x86_64 by using uint32_t instead of unsigned long

18 years agodon't use -O2 for now
Dan Winship [Mon, 4 Feb 2008 15:12:04 +0000]
don't use -O2 for now

18 years agoFix comparisong bug in razor_set_diff().
Kristian Høgsberg [Tue, 22 Jan 2008 16:34:28 +0000]
Fix comparisong bug in razor_set_diff().

We could end up calling the callback for p1 even if it's NULL, if p2 != NULL
and the previous comparison left res == -1.

18 years agoUse a package iterator in find_packages() to add packages sorted.
Kristian Høgsberg [Tue, 22 Jan 2008 05:08:13 +0000]
Use a package iterator in find_packages() to add packages sorted.

Also avoids use of razor_set_get_package().

18 years agoFactor out property importing for rpm importer.
Kristian Høgsberg [Tue, 22 Jan 2008 04:02:47 +0000]
Factor out property importing for rpm importer.

18 years agoUse iterators for razor_set_diff() implementation.
Kristian Høgsberg [Tue, 22 Jan 2008 03:40:54 +0000]
Use iterators for razor_set_diff() implementation.

18 years agoUse the package iterator for looping over file owners too.
Kristian Høgsberg [Fri, 18 Jan 2008 04:36:12 +0000]
Use the package iterator for looping over file owners too.

18 years agoAdd a package iterator for iterating through property owners.
Kristian Høgsberg [Fri, 18 Jan 2008 04:28:37 +0000]
Add a package iterator for iterating through property owners.

18 years agoMove more front-end logic from razor_set_list_property_packages() to main.c.
Kristian Høgsberg [Fri, 11 Jan 2008 04:42:42 +0000]
Move more front-end logic from razor_set_list_property_packages() to main.c.

18 years agoUse property iterator in razor_set_list_property_packages().
Kristian Høgsberg [Fri, 11 Jan 2008 04:30:51 +0000]
Use property iterator in razor_set_list_property_packages().

18 years agoClean up property iterator constructor a bit.
Kristian Høgsberg [Fri, 11 Jan 2008 04:03:03 +0000]
Clean up property iterator constructor a bit.

18 years agoImplement razor_set_get_package() using the package iterator.
Kristian Høgsberg [Fri, 11 Jan 2008 03:50:51 +0000]
Implement razor_set_get_package() using the package iterator.

Drop bsearch and qsort with data TODO items.

18 years agoUse property iterator for razor_set_get_property().
Kristian Høgsberg [Fri, 11 Jan 2008 03:44:41 +0000]
Use property iterator for razor_set_get_property().

18 years agoGet rid of razor_importer_tokenize() helper function.
Kristian Høgsberg [Fri, 11 Jan 2008 03:07:07 +0000]
Get rid of razor_importer_tokenize() helper function.

18 years agoFix a few warnings.
Kristian Høgsberg [Fri, 11 Jan 2008 02:08:03 +0000]
Fix a few warnings.

18 years agoAdd missing test.xml.
Kristian Høgsberg [Tue, 8 Jan 2008 17:55:34 +0000]
Add missing test.xml.

18 years agoAdd iterator API, boot-strap test suite.
Kristian Høgsberg [Fri, 4 Jan 2008 00:50:20 +0000]
Add iterator API, boot-strap test suite.

18 years agoSplit a few functions out into new file util.c.
Kristian Høgsberg [Thu, 3 Jan 2008 14:32:21 +0000]
Split a few functions out into new file util.c.

18 years agoDrop unused sha1.h.
Kristian Høgsberg [Sat, 29 Dec 2007 23:59:51 +0000]
Drop unused sha1.h.

18 years agoFix a bit of return -1 / exit(-1) confusion.
Kristian Høgsberg [Sat, 29 Dec 2007 21:43:34 +0000]
Fix a bit of return -1 / exit(-1) confusion.

18 years agoUse fstat() instead of stat() when opening rpm.
Kristian Høgsberg [Sat, 29 Dec 2007 20:56:59 +0000]
Use fstat() instead of stat() when opening rpm.

18 years agoDrop table based section lookup and look up sections on demand.
Kristian Høgsberg [Sat, 29 Dec 2007 20:36:13 +0000]
Drop table based section lookup and look up sections on demand.

18 years agoExtend installer implementation further.
Kristian Høgsberg [Thu, 27 Dec 2007 22:01:52 +0000]
Extend installer implementation further.

18 years agoRun install scripts.
Kristian Høgsberg [Sun, 23 Dec 2007 03:05:29 +0000]
Run install scripts.

18 years agoUse an array of tags instead of a big switch for parsing the RPM headers.
Kristian Høgsberg [Sat, 22 Dec 2007 05:37:06 +0000]
Use an array of tags instead of a big switch for parsing the RPM headers.

18 years agoFix file tree traversal to not skip the last entry.
Kristian Høgsberg [Fri, 16 Nov 2007 22:14:51 +0000]
Fix file tree traversal to not skip the last entry.

18 years agoDump a couple of ideas to TODO, prune a few old items.
Kristian Høgsberg [Tue, 13 Nov 2007 06:30:09 +0000]
Dump a couple of ideas to TODO, prune a few old items.

18 years agoDrop unused sha1.c from repository.
Kristian Høgsberg [Tue, 13 Nov 2007 06:08:08 +0000]
Drop unused sha1.c from repository.

18 years agoAdd the start of a test suite for the core razor functionality.
Kristian Høgsberg [Tue, 13 Nov 2007 06:07:03 +0000]
Add the start of a test suite for the core razor functionality.

18 years agoClean up the merging code a bit.
Kristian Høgsberg [Mon, 12 Nov 2007 05:03:37 +0000]
Clean up the merging code a bit.

Use the hashtable instead of reusing razor_importer for this.
Introduce struct razor_merger for this.  All this is steps
towards making the merging policy external to the core razor_set code.

18 years agoSplit out hashtable functionality from importer.
Kristian Høgsberg [Sun, 11 Nov 2007 19:57:42 +0000]
Split out hashtable functionality from importer.

18 years agoFirst steps towards rpm installation.
Kristian Høgsberg [Fri, 9 Nov 2007 03:45:27 +0000]
First steps towards rpm installation.

18 years agoDrop support for half-baked rzr file idea.
Kristian Høgsberg [Fri, 9 Nov 2007 03:36:16 +0000]
Drop support for half-baked rzr file idea.

18 years agoExtend rpm dumper into an rpm importer.
Kristian Høgsberg [Thu, 8 Nov 2007 22:14:19 +0000]
Extend rpm dumper into an rpm importer.

18 years agoAdd the first bits of rpm file parser.
Kristian Høgsberg [Wed, 7 Nov 2007 05:33:56 +0000]
Add the first bits of rpm file parser.

18 years agoImprove download error handling, don't use libcurl progress.
Kristian Høgsberg [Tue, 6 Nov 2007 03:54:33 +0000]
Improve download error handling, don't use libcurl progress.

18 years agoOnly download yum files if they're not there.
Kristian Høgsberg [Tue, 6 Nov 2007 02:55:31 +0000]
Only download yum files if they're not there.

18 years agoLink to curl and download yum files automatically.
Kristian Høgsberg [Tue, 6 Nov 2007 00:06:52 +0000]
Link to curl and download yum files automatically.

18 years agoParse filelists.xml.gz too, so we import the yum files too.
Kristian Høgsberg [Sun, 4 Nov 2007 05:11:53 +0000]
Parse filelists.xml.gz too, so we import the yum files too.

18 years agoSet the property type when merging package sets.
Kristian Høgsberg [Sun, 4 Nov 2007 04:58:57 +0000]
Set the property type when merging package sets.

18 years agoDon't reset yum parser state when finishing parsing rpm:entry.
Kristian Høgsberg [Sun, 4 Nov 2007 04:58:25 +0000]
Don't reset yum parser state when finishing parsing rpm:entry.

This fixes the bug where each package on got on of each property type.

18 years agoImport obsoletes and conflicts; add commands to list them.
Kristian Høgsberg [Thu, 1 Nov 2007 02:59:42 +0000]
Import obsoletes and conflicts; add commands to list them.

18 years agoStore requires and provides in the same list.
Kristian Høgsberg [Thu, 1 Nov 2007 02:41:27 +0000]
Store requires and provides in the same list.

18 years agoTrim TODO, start tracking what's needed for 0.1 (replace rpm+yum).
Kristian Høgsberg [Mon, 29 Oct 2007 02:36:26 +0000]
Trim TODO, start tracking what's needed for 0.1 (replace rpm+yum).

18 years agoUse a terminator bit instead of ~0 for all lists.
Kristian Høgsberg [Fri, 26 Oct 2007 03:35:42 +0000]
Use a terminator bit instead of ~0 for all lists.

18 years agoMore ideas for TODO.
Kristian Høgsberg [Thu, 25 Oct 2007 17:25:45 +0000]
More ideas for TODO.

18 years agoFix yum importer.
Kristian Høgsberg [Thu, 25 Oct 2007 17:19:49 +0000]
Fix yum importer.

18 years agoUse immediate links for property package lists too.
Kristian Høgsberg [Wed, 24 Oct 2007 17:39:57 +0000]
Use immediate links for property package lists too.

18 years agoIntroduce an immediate bit for 1-length lists.
Kristian Høgsberg [Wed, 24 Oct 2007 17:20:12 +0000]
Introduce an immediate bit for 1-length lists.

Instead of linking to a ~0 terminated list of one package, use the
high bit of the link to indicate it's a direct link to the one package.

18 years agoImport rpm release as part of the version.
Kristian Høgsberg [Wed, 24 Oct 2007 16:21:29 +0000]
Import rpm release as part of the version.

18 years agoAdd README and add primary.xml.gz to .gitignore.
Kristian Høgsberg [Wed, 24 Oct 2007 04:50:29 +0000]
Add README and add primary.xml.gz to .gitignore.

18 years agoFix problem where / would get added as an entry under root directory.
Kristian Høgsberg [Wed, 24 Oct 2007 04:32:18 +0000]
Fix problem where / would get added as an entry under root directory.

18 years agoTrack files per package and add command to list them.
Kristian Høgsberg [Wed, 24 Oct 2007 04:05:42 +0000]
Track files per package and add command to list them.

18 years agoPrune TODO items.
Kristian Høgsberg [Wed, 24 Oct 2007 04:01:43 +0000]
Prune TODO items.

18 years agoAdd fnmatch() filtering to output to improve tab-completion.
Kristian Høgsberg [Tue, 23 Oct 2007 05:57:39 +0000]
Add fnmatch() filtering to output to improve tab-completion.

18 years agoAdd bash completion script.
Kristian Høgsberg [Tue, 23 Oct 2007 02:55:06 +0000]
Add bash completion script.

18 years agoTrack file owner ship.
Kristian Høgsberg [Tue, 23 Oct 2007 02:53:55 +0000]
Track file owner ship.

18 years agoTODO: Add pipelined download and install idea.
Kristian Høgsberg [Tue, 23 Oct 2007 00:41:54 +0000]
TODO: Add pipelined download and install idea.

18 years agoFix argument parsing for a couple of commands.
Kristian Høgsberg [Tue, 23 Oct 2007 00:12:58 +0000]
Fix argument parsing for a couple of commands.

18 years agoImplement listing only files in a subdirectory.
Kristian Høgsberg [Mon, 22 Oct 2007 02:41:02 +0000]
Implement listing only files in a subdirectory.

18 years agoAdd a file tree section to the package set structure.
Kristian Høgsberg [Mon, 22 Oct 2007 01:57:22 +0000]
Add a file tree section to the package set structure.

18 years agoUpdate TODO a bit.
Kristian Høgsberg [Mon, 22 Oct 2007 01:42:31 +0000]
Update TODO a bit.

18 years agoExtend importers to also pick up filelists for packages.
Kristian Høgsberg [Sun, 7 Oct 2007 18:25:06 +0000]
Extend importers to also pick up filelists for packages.

18 years agoFix typo in command_update().
Kristian Høgsberg [Fri, 5 Oct 2007 20:38:59 +0000]
Fix typo in command_update().

18 years agoAdd diff function to compute the difference between two package sets.
Kristian Høgsberg [Fri, 5 Oct 2007 20:26:27 +0000]
Add diff function to compute the difference between two package sets.

18 years agoSplit command line interface out into main.c.
Kristian Høgsberg [Sun, 30 Sep 2007 04:18:08 +0000]
Split command line interface out into main.c.

18 years agoGet version flags for requires in rpmdb importer.
Kristian Høgsberg [Sun, 30 Sep 2007 03:30:35 +0000]
Get version flags for requires in rpmdb importer.

18 years agoImplement linear package set merger.
Kristian Høgsberg [Sat, 29 Sep 2007 23:25:38 +0000]
Implement linear package set merger.

18 years agoUpdate TODO; prune a couple of obsolete items, add a new few new.
Kristian Høgsberg [Wed, 26 Sep 2007 04:08:03 +0000]
Update TODO; prune a couple of obsolete items, add a new few new.

18 years agoSplit the property pool into three pools; requires, provides and packages.
Kristian Høgsberg [Thu, 20 Sep 2007 23:28:09 +0000]
Split the property pool into three pools; requires, provides and packages.

This simplifies the remapping code a lot and reduces memory pressure
during import a bit.

18 years agoImplement updating all packages.
Kristian Høgsberg [Thu, 20 Sep 2007 18:53:03 +0000]
Implement updating all packages.

18 years agoImplement the rest of package updating.
Kristian Høgsberg [Thu, 20 Sep 2007 18:21:28 +0000]
Implement the rest of package updating.

18 years agoAdd comment about how to implement package addition faster.
Kristian Høgsberg [Thu, 20 Sep 2007 03:24:57 +0000]
Add comment about how to implement package addition faster.

18 years agoImplement comparison of version strings and use where appropriate.
Kristian Høgsberg [Thu, 20 Sep 2007 03:02:31 +0000]
Implement comparison of version strings and use where appropriate.

18 years agoSort packages on version as second order criteria.
Kristian Høgsberg [Wed, 19 Sep 2007 21:23:53 +0000]
Sort packages on version as second order criteria.

18 years agoFirst bits of package set update algorithm.
Kristian Høgsberg [Wed, 19 Sep 2007 21:19:11 +0000]
First bits of package set update algorithm.

18 years agoMove string hash table buckets to importer object.
Kristian Høgsberg [Wed, 19 Sep 2007 19:50:36 +0000]
Move string hash table buckets to importer object.

18 years agoFix type-punning warnings.
Kristian Høgsberg [Wed, 19 Sep 2007 19:28:19 +0000]
Fix type-punning warnings.

18 years agoRefactor the import interface and make it opaque.
Kristian Høgsberg [Wed, 19 Sep 2007 19:26:25 +0000]
Refactor the import interface and make it opaque.

18 years agoFix swapping of map entries in __qsort_with_data.
Kristian Høgsberg [Wed, 19 Sep 2007 18:34:11 +0000]
Fix swapping of map entries in __qsort_with_data.

18 years agoAdd importer for system rpm database.
Kristian Høgsberg [Wed, 19 Sep 2007 18:09:03 +0000]
Add importer for system rpm database.

18 years agoSplit importers to import.c.
Kristian Høgsberg [Tue, 18 Sep 2007 19:02:04 +0000]
Split importers to import.c.

18 years agoAdd makefile rule to download and import yum data.
Kristian Høgsberg [Tue, 18 Sep 2007 18:14:34 +0000]
Add makefile rule to download and import yum data.

18 years agoMake qsort_with_data return a map and avoid import_package/property.
Kristian Høgsberg [Fri, 14 Sep 2007 17:22:44 +0000]
Make qsort_with_data return a map and avoid import_package/property.

18 years agoFix warning.
Kristian Høgsberg [Thu, 13 Sep 2007 14:54:13 +0000]
Fix warning.