Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove obsolete InvalidAtom handler in _add_pkg_dep_string(). | Zac Medico | 2009-09-19 | 2 | -19/+12 |
| | | | | svn path=/main/trunk/; revision=14283 | ||||
* | Avoid lots of redundant Atom constructor calls. Thanks to Marat Radchenko | Zac Medico | 2009-09-19 | 8 | -68/+79 |
| | | | | | | <marat@slonopotamus.org> for the initial patch from bug #276813. svn path=/main/trunk/; revision=14282 | ||||
* | Fix _expand_new_virtuals() to preserve USE deps in atoms for new-style | Zac Medico | 2009-09-19 | 2 | -52/+53 |
| | | | | | | virtuals, and update the corresponding depgraph code. svn path=/main/trunk/; revision=14281 | ||||
* | Use a dict for Package.metadata, because it's faster. Thanks to Marat | Zac Medico | 2009-09-19 | 1 | -49/+33 |
| | | | | | | Radchenko <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14280 | ||||
* | Atom optimizations. Remove the metaclass and cache since it just slows it | Zac Medico | 2009-09-18 | 1 | -52/+21 |
| | | | | | | down. Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14279 | ||||
* | Fix broken virtual depth code from previous commit. | Zac Medico | 2009-09-14 | 1 | -2/+1 |
| | | | | svn path=/main/trunk/; revision=14273 | ||||
* | Add support in depgraph._add_pkg_dep_string() for adding indirect virtual | Zac Medico | 2009-09-14 | 1 | -6/+36 |
| | | | | | | | | deps to the graph. This takes advantage of circular dependency avoidance that's done by dep_zapdeps, while avoiding the dependency graph distortion reported in bug #283795. svn path=/main/trunk/; revision=14272 | ||||
* | Make depgraph._select_atoms() return a dict, in order to separate selected | Zac Medico | 2009-09-14 | 1 | -17/+30 |
| | | | | | | direct deps from indirect virtual deps. svn path=/main/trunk/; revision=14271 | ||||
* | When _expand_new_virtuals() is called by repoman, skip expansion of new-style | Zac Medico | 2009-09-14 | 1 | -5/+17 |
| | | | | | | virtuals. svn path=/main/trunk/; revision=14270 | ||||
* | Reimplement the code from bug #283795 so that indirect deps are preserved | Zac Medico | 2009-09-14 | 2 | -37/+57 |
| | | | | | | | | for later use. TODO: Write code to add selected indirect virtual deps to the graph. This will take advantage of circular dependency avoidance that's done by dep_zapdeps. svn path=/main/trunk/; revision=14269 | ||||
* | Simplify cpv_getkey() by just calling dep_getkey('=' + mycpv). | Zac Medico | 2009-09-14 | 2 | -17/+1 |
| | | | | svn path=/main/trunk/; revision=14264 | ||||
* | Make dep_getcpv() use Atom, and fall back to legacy code for backward compat. | Zac Medico | 2009-09-14 | 1 | -10/+7 |
| | | | | svn path=/main/trunk/; revision=14262 | ||||
* | Insice match_from_list(), use remove_slot() instead of dep_getcpv() where | Zac Medico | 2009-09-14 | 1 | -1/+1 |
| | | | | | | appropriate. svn path=/main/trunk/; revision=14261 | ||||
* | Use a regular expression for cpv_getkey(), and fall back to legacy code if | Zac Medico | 2009-09-14 | 2 | -0/+6 |
| | | | | | | no match is found. svn path=/main/trunk/; revision=14259 | ||||
* | Make get_operator() use Atom, and remove unnecessary reflection code from | Zac Medico | 2009-09-14 | 1 | -6/+7 |
| | | | | | | | dep_getkey(). Thanks to Marat Radchenko <marat@slonopotamus.org> for suggestions. svn path=/main/trunk/; revision=14256 | ||||
* | Make isspecific() use the Atom class and fall back to legacy code if the | Zac Medico | 2009-09-14 | 1 | -13/+9 |
| | | | | | | | atom is invalid. Also, optimize called isjustname() legacy code to only check the last 2 components. svn path=/main/trunk/; revision=14255 | ||||
* | Use the Atom class to implement dep_getkey(), and fall back to legacy code | Zac Medico | 2009-09-14 | 1 | -0/+10 |
| | | | | | | when necessary for backward compatibility. svn path=/main/trunk/; revision=14254 | ||||
* | Add more test cases. | Zac Medico | 2009-09-14 | 1 | -0/+3 |
| | | | | svn path=/main/trunk/; revision=14253 | ||||
* | Simplify isvalidatom() to simply use the Atom class. Thanks to Marat | Zac Medico | 2009-09-14 | 1 | -33/+3 |
| | | | | | | Radchenko <marat@slonopotamus.org> for the suggestion. svn path=/main/trunk/; revision=14252 | ||||
* | Simplify the _pkg regex and fix validation for some cases by using the | Zac Medico | 2009-09-14 | 2 | -12/+41 |
| | | | | | | | | _version regex to match unwanted version-like components which can not be at the end of a _pkg match. For example isvalidatom('app-doc/php-docs-20071125-r2') now correctly returns False. svn path=/main/trunk/; revision=14251 | ||||
* | Bug #240656 - Unmerge broken symlinks where a directory was expected. | Zac Medico | 2009-09-14 | 1 | -1/+1 |
| | | | | | | (merged from branches/prefix r14248) svn path=/main/trunk/; revision=14250 | ||||
* | Simlify the Atom regex. Thanks to Marat Radchenko <marat@slonopotamus.org> | Zac Medico | 2009-09-14 | 1 | -9/+4 |
| | | | | | | for this patch. svn path=/main/trunk/; revision=14249 | ||||
* | Use cpv_getkey() instead of dep_getkey() where appropriate. | Zac Medico | 2009-09-13 | 2 | -4/+4 |
| | | | | svn path=/main/trunk/; revision=14242 | ||||
* | Make the Atom constructor use regular expression match groups for | Zac Medico | 2009-09-13 | 1 | -22/+41 |
| | | | | | | | initialization. Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14241 | ||||
* | Fix docs for isjustname() since it doesn't raise InvalidAtom now. | Zac Medico | 2009-09-12 | 1 | -1/+0 |
| | | | | svn path=/main/trunk/; revision=14240 | ||||
* | Add backward compatibility to isjustname(), so the tests don't fail. | Zac Medico | 2009-09-12 | 1 | -1/+10 |
| | | | | svn path=/main/trunk/; revision=14239 | ||||
* | Add tests for the Atom class. | Zac Medico | 2009-09-12 | 1 | -0/+42 |
| | | | | svn path=/main/trunk/; revision=14238 | ||||
* | Fix bug in _expand_new_virtuals() reported by Arfrever: | Zac Medico | 2009-09-12 | 1 | -1/+1 |
| | | | | | | TypeError: coercing to Unicode: need string or buffer, Atom found svn path=/main/trunk/; revision=14237 | ||||
* | Use isjustname() where appropriate. | Zac Medico | 2009-09-12 | 3 | -5/+6 |
| | | | | svn path=/main/trunk/; revision=14236 | ||||
* | Fix isjustname docstring to have a valid atom in the example. | Zac Medico | 2009-09-12 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=14235 | ||||
* | Reimplement isjustname() using the Atom class. Thanks to Marat Radchenko | Zac Medico | 2009-09-12 | 1 | -13/+8 |
| | | | | | | <marat@slonopotamus.org> for the suggestion. svn path=/main/trunk/; revision=14234 | ||||
* | In config.getvirtuals(), save Atom instances in order to avoid revalidation. | Zac Medico | 2009-09-12 | 1 | -17/+38 |
| | | | | | | Also, fix cpv_expand() to handle Atom instances from config.getvirtuals(). svn path=/main/trunk/; revision=14233 | ||||
* | Make dbapi.move_ent() take advantage of Atom instances when validating | Zac Medico | 2009-09-12 | 2 | -9/+8 |
| | | | | | | arguments. svn path=/main/trunk/; revision=14232 | ||||
* | Add missing InvalidAtom import. | Zac Medico | 2009-09-12 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=14231 | ||||
* | Make parse_updates() and update_dbentry() use Atom instances. | Zac Medico | 2009-09-12 | 1 | -9/+27 |
| | | | | svn path=/main/trunk/; revision=14230 | ||||
* | Fix bad assumptions. | Zac Medico | 2009-09-12 | 1 | -20/+15 |
| | | | | svn path=/main/trunk/; revision=14229 | ||||
* | Fix poor assumptions. | Zac Medico | 2009-09-12 | 1 | -6/+9 |
| | | | | svn path=/main/trunk/; revision=14228 | ||||
* | Fix bugs and poor assumptions. | Zac Medico | 2009-09-12 | 1 | -7/+5 |
| | | | | svn path=/main/trunk/; revision=14227 | ||||
* | Update grabdict_package and grabfile_package calling code to take advantage | Zac Medico | 2009-09-12 | 1 | -35/+18 |
| | | | | | | | of Atom instances, and convert *atom from 'packages' to a normal Atom instance when it's stored in prevmaskdict. svn path=/main/trunk/; revision=14226 | ||||
* | Make grabfile_package() accept *atom only for files named 'packages' since | Zac Medico | 2009-09-12 | 1 | -1/+2 |
| | | | | | | they are not valid in any other files. svn path=/main/trunk/; revision=14225 | ||||
* | Make grabdict_package() and grabfile_package() return Atom instances when | Zac Medico | 2009-09-12 | 1 | -12/+25 |
| | | | | | | possible, in order to avoid revalidation. svn path=/main/trunk/; revision=14224 | ||||
* | Implement Atom.__copy__ and __deepcopy__ to return self, since instances are | Zac Medico | 2009-09-12 | 1 | -0/+9 |
| | | | | | | immutable. svn path=/main/trunk/; revision=14223 | ||||
* | Bug #257660 - Handle directories that are unlisted in Entries, which is normal | Zac Medico | 2009-09-12 | 1 | -1/+5 |
| | | | | | | | when checked out without -P. Thanks to Christian Ruppert <idl0r@gentoo.org> for this patch. svn path=/main/trunk/; revision=14222 | ||||
* | Add test cases for operators with missing version component. | Zac Medico | 2009-09-08 | 1 | -2/+7 |
| | | | | svn path=/main/trunk/; revision=14221 | ||||
* | Add test case for * operator with missing =. | Zac Medico | 2009-09-08 | 1 | -0/+1 |
| | | | | svn path=/main/trunk/; revision=14220 | ||||
* | simplify atom regex (winning even more performance) and turns it in verbose | Zac Medico | 2009-09-08 | 2 | -8/+19 |
| | | | | | | | mode with comments. Added more corner case tests. Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14219 | ||||
* | Reimplement isspecific() using a single regular expression match. Thanks to | Zac Medico | 2009-09-08 | 1 | -11/+9 |
| | | | | | | Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14217 | ||||
* | Fix isvalidatom() to check the 'must not end in' clause from PMS 2.1.2. | Zac Medico | 2009-09-08 | 2 | -6/+16 |
| | | | | | | Thanks to Marat Radchenko <marat@slonopotamus.org> for this patch. svn path=/main/trunk/; revision=14216 | ||||
* | Reimplement isvalidatom() to use a single regular expression match. Thanks | Zac Medico | 2009-09-07 | 2 | -68/+44 |
| | | | | | | to Marat Radchenko <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14213 | ||||
* | Bug #283795 - Make dep_check() filter out expanded indirect virual deps after | Zac Medico | 2009-09-07 | 1 | -11/+26 |
| | | | | | | they are no longer needed, in order to avoid distortion of the depgraph. svn path=/main/trunk/; revision=14212 |