summaryrefslogtreecommitdiffstats
path: root/pym/portage_versions.py
Commit message (Collapse)AuthorAgeFilesLines
* Check vercmp() return value to avoid arbitrary results in case it returns NoneZac Medico2008-05-131-2/+4
| | | | | | (trunk r10322) svn path=/main/branches/2.1.2/; revision=10323
* * Make pkgcmp() pass the ebuild revision directly into vercmp() sinceZac Medico2008-01-111-7/+1
| | | | | | | | | | | there is code there to handle it already. This eliminates some redundant revision comparison code. Thanks to peper for the patch. * Add some vercmp() test cases for comparison of ebuild revisions. (trunk r9178) svn path=/main/branches/2.1.2/; revision=9182
* Make best() return early when it's only given one package. (trunk r7664)Zac Medico2007-08-221-3/+3
| | | | svn path=/main/branches/2.1.2/; revision=7668
* For bug #188449, since python floats have limited range, we multiply both ↵Zac Medico2007-08-151-2/+11
| | | | | | floating point representations by a constant so that they are transformed into whole numbers. This allows the practically infinite range of a python int to be exploited. The multiplication is done by padding both literal strings with zeros as necessary to ensure equal length. (trunk r7606) svn path=/main/branches/2.1.2/; revision=7607
* Return copies of the cached values from pkgsplit and catpkgsplit. (trunk r6746)Zac Medico2007-06-081-2/+2
| | | | svn path=/main/branches/2.1.2/; revision=6763
* For bug #171259, fix vercmp so that implicit _p0 is less than explicit _p0. ↵Zac Medico2007-05-051-3/+5
| | | | | | Thanks to TGL <degrenier@easyconnect.fr> for the patch. (trunk r6484:6485) svn path=/main/branches/2.1.2/; revision=6486
* more string deprecationAlec Warner2007-01-121-7/+7
| | | | svn path=/main/trunk/; revision=5595
* comment the excepts in a few placesAlec Warner2007-01-121-1/+1
| | | | svn path=/main/trunk/; revision=5584
* portage_versions.py, more string.atoi -> int, fix another except: that ↵Alec Warner2007-01-121-10/+10
| | | | | | should be ValueError svn path=/main/trunk/; revision=5582
* Change vercmp to use int() instead of string atoi, catch ValueError in pkgcmpAlec Warner2007-01-121-3/+3
| | | | svn path=/main/trunk/; revision=5581
* Allow catpkgsplit to be less strict for atoms that come from installed ↵Zac Medico2007-01-111-1/+3
| | | | | | packages (for backward compatibility). svn path=/main/trunk/; revision=5577
* Use a global to ensure that the valid_category regex is cached.Zac Medico2007-01-111-2/+4
| | | | svn path=/main/trunk/; revision=5574
* SpanKY likes the latin categoriesAlec Warner2007-01-111-1/+1
| | | | svn path=/main/trunk/; revision=5573
* learn to spellAlec Warner2007-01-111-1/+1
| | | | svn path=/main/trunk/; revision=5572
* Handle the exception in isvalidatom, change it to use a portage exceptoin, ↵Alec Warner2007-01-111-2/+3
| | | | | | thanks to Zac for pointing this out svn path=/main/trunk/; revision=5571
* Fix comments for catpkgsplitAlec Warner2007-01-111-1/+2
| | | | svn path=/main/trunk/; revision=5570
* Valid categories in catpkgsplitAlec Warner2007-01-111-1/+19
| | | | svn path=/main/trunk/; revision=5568
* A quick docstring for vercmpAlec Warner2006-12-071-1/+23
| | | | svn path=/main/trunk/; revision=5210
* portage_versions lacks a header or copyright notice :xAlec Warner2006-12-071-0/+6
| | | | svn path=/main/trunk/; revision=5208
* For bug #152127, make vercmp give less value to implcit .0, so two versions ↵Zac Medico2006-12-071-2/+5
| | | | | | that aren't literally equal are not ambiguously given the same value (in sorting, for example). svn path=/main/trunk/; revision=5205
* Move portage.best() to portage_versions.Zac Medico2006-07-221-0/+14
| | | | svn path=/main/trunk/; revision=3990
* Add a docstring with epytext markup to portage_versions.pkgcmp(). Thanks to ↵Zac Medico2006-07-171-0/+21
| | | | | | chriswhite for this patch. svn path=/main/trunk/; revision=3913
* Move endversion and endversion_keys to portage_versions and import them for ↵Zac Medico2006-04-231-0/+2
| | | | | | backward compatibility. svn path=/main/trunk/; revision=3202
* Backport of version code rewrite (bug 37406), should be completely backwards ↵Marius Mauch2005-11-131-0/+222
compatible (and the algorithm has been tested on the whole tree multiple times already). Also adds some new features in version syntax like cvs version prefixes (in the same package) and multiple suffixes. svn path=/main/trunk/; revision=2309