debian-cd-search.git
10 years agoVersion 0.6 v0.6
Steve McIntyre [Sat, 16 Apr 2011 21:53:12 +0000 (22:53 +0100)]
Version 0.6

10 years agoAdd an extra 'search again' link at the top of the results
Steve McIntyre [Sat, 16 Apr 2011 21:52:59 +0000 (22:52 +0100)]
Add an extra 'search again' link at the top of the results

10 years agoVersion 0.5 v0.5
Steve McIntyre [Sat, 16 Apr 2011 21:26:03 +0000 (22:26 +0100)]
Version 0.5

10 years agoAdd configurable debug
Steve McIntyre [Sat, 16 Apr 2011 21:23:09 +0000 (22:23 +0100)]
Add configurable debug

Add debug=1 in the config file to cause the script to dump config
variables and query settings.

10 years agoCode shuffle
Steve McIntyre [Sat, 16 Apr 2011 21:20:32 +0000 (22:20 +0100)]
Code shuffle

Move set_default_config() and read_config() to the top of the file.

10 years agoAdd support for simple substring searches
Steve McIntyre [Sat, 16 Apr 2011 21:16:13 +0000 (22:16 +0100)]
Add support for simple substring searches

Deal with simple substring searches, whitespace separated: add "*" at
beginning and end and in between each query term.

Add extra option for query type (defaulting to the simple substring)
to allow for old behaviour and new.

10 years agoAdd config file handling v0.4
Steve McIntyre [Sat, 16 Apr 2011 18:36:59 +0000 (19:36 +0100)]
Add config file handling

Version 0.4

Move config variables into the %conf hash.

Set default config values in set_default_config()

In read_config(), look for a config file called find_file.cfg in the
same dir as the script is run from. If it exists, use the
ConfigReader::Simple library to load and parse the config file,
looking for directives that match the keys already in the %conf hash.

Makes it much easier to run the script on multiple hosts directly from
git - now we can store config in a separate file and we don't have to
modify the script itself.

10 years agoadd missing paren
Steve McIntyre [Fri, 15 Apr 2011 10:39:25 +0000 (11:39 +0100)]
add missing paren

10 years agoreindent, lose tabs
Steve McIntyre [Fri, 15 Apr 2011 10:36:24 +0000 (11:36 +0100)]
reindent, lose tabs

10 years agoAdd 'search again' link after successful search
Steve McIntyre [Fri, 15 Apr 2011 10:29:25 +0000 (11:29 +0100)]
Add 'search again' link after successful search

10 years agoTrivial layout tweaks
Steve McIntyre [Fri, 15 Apr 2011 10:28:03 +0000 (11:28 +0100)]
Trivial layout tweaks

10 years agoMore wording / layout tweaks
Steve McIntyre [Fri, 15 Apr 2011 10:08:34 +0000 (11:08 +0100)]
More wording / layout tweaks

10 years agoTweak wording slightly
Steve McIntyre [Fri, 15 Apr 2011 10:02:53 +0000 (11:02 +0100)]
Tweak wording slightly

10 years agocron script for polling and pulling backend db from cdimage.d.o
Steve McIntyre [Thu, 14 Apr 2011 20:56:42 +0000 (21:56 +0100)]
cron script for polling and pulling backend db from cdimage.d.o

10 years agoAdd scraper to grab bits of text and style from www.d.o/CD/
Steve McIntyre [Thu, 14 Apr 2011 20:44:48 +0000 (21:44 +0100)]
Add scraper to grab bits of text and style from d.o/CD/

Grab http://www.debian.org/CD/index.$LANG.html, split up and
search/replace some of the text to make it useful for the search CGI.

10 years agoAdd prettiness so we look more like the CD pages on www.d.o v0.3
Steve McIntyre [Thu, 14 Apr 2011 20:41:30 +0000 (21:41 +0100)]
Add prettiness so we look more like the CD pages on d.o

Add support for reading in various lumps of html that we can scrape
from www.debian.org/CD/

Reference the standard debian.css stylesheet.

Refactor generation a little.

10 years agoAdd message to say exact lookups are faster
Steve McIntyre [Tue, 5 Apr 2011 18:15:11 +0000 (19:15 +0100)]
Add message to say exact lookups are faster

10 years agoCount the results on the direct lookup too
Steve McIntyre [Tue, 5 Apr 2011 18:12:23 +0000 (19:12 +0100)]
Count the results on the direct lookup too

10 years agoIf we're given an exact search term, shortcut
Steve McIntyre [Tue, 5 Apr 2011 18:04:36 +0000 (19:04 +0100)]
If we're given an exact search term, shortcut

If we're given an exact term containing no glob characters, then we
may as well save a lot of time and just do the direct key lookup in
the database!

Simplify the two query scripts: make the actual search code
common. Might split out into a separate module later, or even combine
the scripts.

10 years agoAdd copyright headers and boilerplate
Steve McIntyre [Tue, 5 Apr 2011 17:41:23 +0000 (18:41 +0100)]
Add copyright headers and boilerplate

10 years agoSimple tools to query the CD contents database v0.2
Steve McIntyre [Mon, 4 Apr 2011 13:10:09 +0000 (14:10 +0100)]
Simple tools to query the CD contents database

Two tools:

 * find_file_db.pl is a command-line interface
 * find_file.cgi is a simple web interface.

10 years agoInitial code for generating CD contents database
Steve McIntyre [Mon, 4 Apr 2011 12:57:36 +0000 (13:57 +0100)]
Initial code for generating CD contents database

Scan all the areas defined for .list.gz files, parse the contents and
build a hash database per area ready for users to work with.