28c2c32e3f
Add an add_version overloaded for strings for convenience when writing test cases.
Ciaran McCreesh
2006-01-26 06:53:06 +00:00
12338888a1
Add set method
Ciaran McCreesh
2006-01-25 11:47:35 +00:00
9475ac6d17
warning -> compiler, since -pedantic isn't really a warning. Add -Woverloaded-virtual.
Ciaran McCreesh
2006-01-24 18:24:10 +00:00
1215ecdd4d
Discourage some of the sillier match_package argument options
Ciaran McCreesh
2006-01-24 18:00:54 +00:00
a0dfea75f2
Add in some more <=> compare function overloads for types that can be passed more quickly by value than by reference
Ciaran McCreesh
2006-01-24 17:00:16 +00:00
f13aa4c096
Death to dynamic_cast.
Ciaran McCreesh
2006-01-24 15:59:55 +00:00
d4ec805ae4
Tinker with --version
Ciaran McCreesh
2006-01-24 11:17:17 +00:00
b5b6b35d59
Add some more configure sanity checks for our standard library.
Ciaran McCreesh
2006-01-24 10:46:10 +00:00
3bdf7846f1
Add missing includes
Ciaran McCreesh
2006-01-24 10:43:35 +00:00
683e961904
std::make_pair("foo", "bar") is illegal, although libstdc++ lets us get away with it. Explicitly create the strings anyway.
Ciaran McCreesh
2006-01-24 10:43:11 +00:00
1fe17ec766
Replace make_qualified_package_name with a constructor.
Ciaran McCreesh
2006-01-24 07:40:20 +00:00
01f3f80564
Use a deque in various places where it makes sense.
Ciaran McCreesh
2006-01-24 07:04:48 +00:00
9ed3a2a493
Don't use < followed by > or < twice for types that have a .compare function.
Ciaran McCreesh
2006-01-24 06:37:49 +00:00
440320262b
Make the cache location an optional config parameter for portage repositories
Ciaran McCreesh
2006-01-24 04:00:21 +00:00
edc933d9af
Improve the error message given for no resolvable || () items. Don't require a package name when checking whether a USE flag is enabled.
Ciaran McCreesh
2006-01-24 03:04:35 +00:00
64453b1a3c
When querying an old style virtual, display the package to which it resolves.
Ciaran McCreesh
2006-01-24 03:02:54 +00:00
4386ff01f3
Remove some debug output, we don't need it any more.
Ciaran McCreesh
2006-01-24 02:28:46 +00:00
e2e9605fd2
Don't show Homepage, Description, Licence if they're empty.
Ciaran McCreesh
2006-01-23 23:10:19 +00:00
c81e35ab62
Fix my name
Mark Loeser
2006-01-23 05:51:34 +00:00
7a9ebb1c70
Add some testcases for CategoryNamePart
Mark Loeser
2006-01-23 05:51:15 +00:00
6bce4b1f94
Might want to handle an empty string properly, while we're at it
Stephen P. Bennett
2006-01-23 02:40:45 +00:00
7c14cbaced
Test some failure conditions for destringify
Stephen P. Bennett
2006-01-23 02:27:40 +00:00
dcbdd26b9b
Added destringify routine(s)
Stephen P. Bennett
2006-01-23 02:17:05 +00:00
c46326e48c
Make the extra test exception information work even when the linker thinks it is cleverer than us.
Ciaran McCreesh
2006-01-23 01:57:57 +00:00
14c3a7d41a
Fixes for icc.
Ciaran McCreesh
2006-01-23 01:04:08 +00:00
300b879d72
More Doxygenation
Ciaran McCreesh
2006-01-23 00:12:42 +00:00
d52fbd642f
db -> database
Ciaran McCreesh
2006-01-22 22:57:56 +00:00
e1e7f5f089
Merge dep_string exceptions into dep_list and dep_parser. Make enum key naming more consistent on package vs name.
Ciaran McCreesh
2006-01-22 22:44:00 +00:00
02ee95a91b
Use ISO date formats
Ciaran McCreesh
2006-01-22 22:15:46 +00:00
e68d9de42e
Allow the user to specify importance= for repositories. Value is an integer, larger is more important.
Ciaran McCreesh
2006-01-22 12:45:40 +00:00
721c4c194a
Add --list-categories. Rename list_repositories files -> list and include both repository and category listing functions.
Ciaran McCreesh
2006-01-22 12:28:17 +00:00
9e989c9c78
Unbreak config file subclasses when creating from a filename.
Ciaran McCreesh
2006-01-22 12:12:20 +00:00
e44365a9f3
fs_error doesn't really deserve its own files
Ciaran McCreesh
2006-01-22 12:03:17 +00:00
6f0147d96d
Checked dereferencing isn't pure
Ciaran McCreesh
2006-01-22 12:02:40 +00:00
664d53715d
Make the test errors more useful if we hit a timeout or segfault
Ciaran McCreesh
2006-01-22 12:01:39 +00:00
cac99b2cbe
Random tinkering.
Ciaran McCreesh
2006-01-22 10:38:40 +00:00
5445a304d4
More file merges
Ciaran McCreesh
2006-01-22 10:15:16 +00:00
9257ae6f20
We don't really need sixty zillion files for version_spec either.
Ciaran McCreesh
2006-01-22 09:21:23 +00:00
be5e1cc9ef
Move all the package database classes into the main package_database files.
Ciaran McCreesh
2006-01-22 08:58:14 +00:00
f14f6c8017
Use base from member to avoid initialising pstream's std::istream with an uninitialised variable. Move pstream buffer and error classes into the main pstream files.
Ciaran McCreesh
2006-01-22 08:21:48 +00:00
17305ce435
Move the various dep list exceptions into dep_list.{hh,cc}.
Ciaran McCreesh
2006-01-22 07:50:48 +00:00
f7d90f2331
Avoid recompiling exception_to_debug_string for every single test case.
Ciaran McCreesh
2006-01-22 07:39:06 +00:00
f40c1a8eb9
Improve exception messages from KeyValueConfigFile. Move KeyValueConfigFileError into key_value_config_file. Make ConfigFileError descend from ConfigurationError rather than directly from Exception.
Ciaran McCreesh
2006-01-22 07:29:34 +00:00
3dff66adc5
Add new constructors to ConfigFile and descendents that take filenames rather than stream pointers. Use them where appropriate. Move ConfigFileError into config_file.
Ciaran McCreesh
2006-01-22 07:15:29 +00:00
ab4ad3f5c9
internal_error might as well be part of exception, since we're on a file tidyup anyway...
Ciaran McCreesh
2006-01-21 19:20:02 +00:00
b373502b50
Merge category_name_part_validator, category_name_part_error into category_name_part. Separate files are overkill here.
Ciaran McCreesh
2006-01-21 18:30:48 +00:00
c34b2651b6
Merged alias_arg and switch_arg into args_option. Seperate files are overkill here, especially for two of the smallest args classes.
Stephen P. Bennett
2006-01-21 18:28:37 +00:00
5710bbe9fe
Merge package_name_validator, package_name_error into package_name. Separate files are overkill here.
Ciaran McCreesh
2006-01-21 18:20:23 +00:00
046afbcd3a
Merge repository_name_validator, repository_name_error into repository_name. Separate files are overkill here.
Ciaran McCreesh
2006-01-21 18:07:15 +00:00
7bd6aec3d9
Merge keyword_name_validator, keyword_name_error into keyword_name. Separate files are overkill here.
Ciaran McCreesh
2006-01-21 17:59:28 +00:00
fbd98bbc02
Merge slot_name_validator, slot_name_error into slot_name. Separate files are overkill here.
Ciaran McCreesh
2006-01-21 17:45:14 +00:00
7c0d7c9161
Merge use_flag_name_validator, use_flag_name_error into use_flag_name. Separate files are overkill here.
Ciaran McCreesh
2006-01-21 17:36:08 +00:00