Sat Nov  1 22:40:01 1997  James Troup  <jjtroup@comp.brad.ac.uk>

	* ruari1.sh: Use ftpget not ncftp.  Fetch compressed Packages
 	files.

Sat Oct  4 23:05:25 1997  James Troup  <jjtroup@comp.brad.ac.uk>

	* vercmp.c: Uses nfstrsave, fixes sproadic problems with version
 	strings disappearing which was making things appear older in the
 	primary than the secondary when they really weren't.

Sat Jun 28 15:04:18 1997  James Troup  <jjtroup@comp.brad.ac.uk>

	* getopt1.c: Ditto.

	* getopt.h: Ditto.

	* getopt.c: Updated to version in tar 1.12.

	* hash.c (create_hash_table): Use xmalloc().

	* utils.c (open_file): Use xmalloc().

	* xmalloc.c: New file, stolen from tar.  Provides malloc() with
 	error checking, so freeing me of the tedious chore of checking for
 	NULL after every call.

	* utils.c (get_blah): Made the number of lines searched a #define.

	* vercmp.c (compare_versions): Minor optimization, by removing
 	spurious strcpy of version_backup back to the original string.
  	Instead simply pass version_backup, so it's that which gets
 	altered.
	(compare_versions): Changed {PRIORITY,SECTION}_LENGTH ->
 	MIN_{PRIORITY,SECTION}_LENGTH for clarity.

	* utils.c (get_blah): If we encounter a line consisting of solely
 	'\n', assume it's the break between Packages and stop searching.

  	* init.c (parse_opt): Added a check for exactly two arguments, and
 	error messages if you have less or more than that.

	* hash.c: Removed malloc()-ing and free()-ing of key->data and
 	replaced with a pointer to a fixed length (PACKAGE_NAME_LENGTH)
 	string.  This ends the silly situation where I was malloc()-ing
 	and free()-ing on every addition or removal from the hash table
 	and twice every version compare, and the string I was malloc()-ing
 	for was fixed length anyway.

	* vercmp.c (compare_versions): Removed malloc()-ing and free()-ing
 	of version_backup and replaced with a fixed length
 	(PACKAGE_NAME_LENGTH) string.

	* main.h (PACKAGE_NAME_LENGTH): Reduced to 400.  Longest line in
 	today's Packages file is 248, 400 ought to be adequate.

	* vercmp.c (compare_versions): Print %s is older than %s only iff
 	`warn_older' is set.
	Remove spurious "config.h" #include.

	* init.c (parse_opt): Add support for the --warn-older option.

	* common.h: New variable `warn_older'.

	* init.c (usage): Updated usage to reflect new options.

	* utils.c (get_blah): Only warn about missing ``blah''
 	(e.g. Section:) if global variable `warn_missing_lines' is set.

	* hash.c (add_to_hash_table): Only warn about duplicates if global
 	variable `warn_duplicates' is set.

	* init.c (usage): program_name is no longer an argument as it is
 	now a global variable.
	(parse_opt): Two new options, long form only, "--warn-duplicates"
 	(warns about duplicate packages in the Packages file) and
 	"--warn-missing-lines" (warns about missing Section: or Priority:
 	etc.).
	(parse_opt): Don't complain if getopt passes '0' back, it does
 	that on long form only options.
	(parse_opt): No longer pass program_name to usage().

	* utils.c (open_file): ditto.

	* main.c: Adapted for the new global variables scheme.
	(main): program_name is now a global variable and declared outside
 	main(), we simply assign argv[0] to it here.
	(main): No longer pass program_name to open_file().

	* common.h: New file.  Contains global variables, can be included
 	by any file which needs them.  The method is a cunning one of
 	conditionally #define-ing GLOBAL to mean "extern" in common.h but
 	"" in main.c where the variables are initially defined.  Stolen
 	straight from tar.

Sat May 17 15:29:43 1997  James Troup  <jjtroup@comp.brad.ac.uk>

	* hash.c (add_to_hash_table): Only give a warning if there is
 	duplicate packages in the Packages file.  Dieing on account of it
 	is lame.

Wed May 14 19:12:59 1997  James Troup  <jjtroup@comp.brad.ac.uk>

	* main.c (main): Remove obsolete variables and function calls.
	(main): Adapt for parsing status file and not dpkg -l output.

	* hash.c (create_hash_table): Don't malloc() key->data here, the
 	length is no longer pre-determined.
	(add_to_hash_table): The length of the package name is no longer
 	limited, adjust accordingly.
	(get_from_hash_table): Add missing malloc() and free() pair. (The
 	cause of some _very_ insidious bugs)
	(destroy_hash_table): Don't free() key->data hare, the length is
 	no longer pre-determined.

	* vercmp.c: version_breakdown(), initialize_version_compare(),
 	destroy_version_compare() procedures removed, superseded by
 	parseversion() from dpkg.
	(compare_versions): arguments are no longer const.
	(compare_versions): d_version_string includes "Version: ", add +9
 	to compensate.
	(compare_versions): remove the kludging of epochs.
	(compare_versions): use parseversion(), this means backuping the
 	version string prior to the call and restoring it afterwards.

	* utils.c (get_blah): new argument `input_length', no more
 	assumption that blah is 9 characters long.
	(get_blah): Removed some spurious comments and debug fprintf()'s.
	(get_blah): Number of lines to search increased to 8, this should
 	probably be an argument or a #define.
	(get_blah): Removed the char blah[10] stuff, I have no idea what
 	was doing or trying to do, but it didn't appear to be anything
 	useful.
	(skip_line)(read_line): Removed commented out debug fprintf()'s
 	and tidied up comments and code.

	* init.c (parse_opt): Removed all traces of --no-kludge-epochs
 	option.
	(usage): Changed output to reflect the change from dpkg -l output
 	to /var/lib/dpkg/status parsing.

Sun Apr 27 21:16:25 1997  James Troup  <jjtroup@comp.brad.ac.uk>

	* ruari2.sh: Added this shell script which is simply a way to sort
 	the output according to priority.

	* ruari1.sh: Add variables for the mirror and path, non-us mirror
 	and path, and architecture to make customization easier. Renamed
 	to ruari1.sh.

	* Makefile.in (distclean): don't remove *.d, they are architecture
 	independant.

	* vercmp.c (compare_versions): Correct the padding, so we don't
 	try to use negative values.

Sat Apr 26 14:46:25 1997  James Troup  <jjtroup@comp.brad.ac.uk>

	* main.c (main): If there is no Priority or Section ensure the
 	output is something sensible.

	* vercmp.c (compare_versions): Add padding to the output of
 	priority and section, to make the output nicer.  

	* vercmp.c: Added my copyright to the copyright notice, since
 	vercmp.c now contains a fair amount of code by me as well as
 	iwj's.

