Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | repoman: fix stable mask to use correct profilev2.2.0_alpha157 | Zac Medico | 2013-01-19 | 1 | -4/+6 |
| | | | | | We can't rely on the internal config instance from the given package instance, since it does not refer to the correct profile. | ||||
* | Fix stable mask logic for repoman. | Zac Medico | 2013-01-19 | 1 | -1/+4 |
| | | | | | | For repoman, if the package has an effective stable keyword that intersects with the effective ACCEPT_KEYWORDS for the current profile, then consider it stable. | ||||
* | Use unicode_literals more. | Zac Medico | 2013-01-18 | 1 | -2/+4 |
| | | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3. | ||||
* | Use re.UNICODE for category/package name regexes. | Zac Medico | 2012-09-22 | 1 | -2/+2 |
| | | | | | | | | This only affects r'\w' with Python 2.x, since Python 3 already defaults to re.UNICODE behavior when compiling unicode str objects (unless re.ASCII is specified). If a repository wants to ban unicode categore/package names then we can add a layout.conf setting for that, as discussed in bug #435934. | ||||
* | Rename slot-abi stuff to refer to slot-operator. | Zac Medico | 2012-08-29 | 1 | -5/+5 |
| | | | | | This makes it consistent with the language in the PMS eapi-5 branch: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=5d6749ac9e5ddc5b1daaad7737b65fa81c6ece47 | ||||
* | EAPI 5 stable use.mask/force for bug #431078 | Zac Medico | 2012-08-24 | 1 | -0/+14 |
| | |||||
* | _pkg_str: pass in config + metadata with KEYWORDS | Zac Medico | 2012-08-24 | 1 | -2/+11 |
| | | | | | This will be needed in order to support stable use.mask/force for bug #431078. | ||||
* | Propagate EAPI for update_dbentry (bug #426476). | Zac Medico | 2012-07-17 | 1 | -0/+2 |
| | |||||
* | Add experimental EAPI 4-slot-abi support. | Zac Medico | 2012-06-22 | 1 | -2/+13 |
| | | | | Refer to 4-slot-abi.docbook for a full description. | ||||
* | Package: move SLOT validation to _pkg_str | Zac Medico | 2012-06-10 | 1 | -1/+9 |
| | |||||
* | _get_pv_re: use _eapi_attrs | Zac Medico | 2012-06-10 | 1 | -13/+20 |
| | |||||
* | _pkg_str: validate repo (move code from Package) | Zac Medico | 2012-05-13 | 1 | -1/+7 |
| | |||||
* | _pkg_str: make version -r0 consistent with input | Zac Medico | 2012-05-13 | 1 | -1/+4 |
| | |||||
* | cpv_sort_key: use _pkg_str | Zac Medico | 2012-05-13 | 1 | -8/+18 |
| | |||||
* | Use _pkg_str.version more. | Zac Medico | 2012-05-13 | 1 | -4/+14 |
| | |||||
* | Don't cache vercmp results. | Zac Medico | 2012-05-13 | 1 | -14/+1 |
| | | | | | It's probably not very helpful to cache vercmp results, since identical version comparisons probably don't recur very often. | ||||
* | _pkg_str: add version attribute for comparisons | Zac Medico | 2012-05-13 | 1 | -0/+1 |
| | | | | | This attribute can be passed directly into vercmp, avoiding the need to generate this string many times. | ||||
* | _pkg_str: add slot and repo attributes | Zac Medico | 2012-05-12 | 1 | -2/+6 |
| | |||||
* | _pkg_str: add cpv attribute for match_from_list | Zac Medico | 2012-05-12 | 1 | -0/+2 |
| | |||||
* | Add a _pkg_str class to cache catpkgsplit results | Zac Medico | 2012-05-12 | 1 | -1/+43 |
| | | | | | This will compensate for the removal of the catpkgsplit cache in commit 68888b0450b1967cb70673a5f06b04c167ef879c. | ||||
* | catpkgsplit: don't cache results | Zac Medico | 2012-05-12 | 1 | -7/+1 |
| | | | | | | | | The cache has been subtly broken since commit eb2056631021a04b62c228206e44376f5c7a81ba when the eapi parameter was added. If necessary, we can add a cpv class (or something like that) in order to avoid redundant catpkgsplit calls in places like match_from_list. | ||||
* | Allow dots in package names in EAPI="4-python". | Arfrever Frehtes Taifersar Arahesis | 2012-05-12 | 1 | -25/+47 |
| | |||||
* | cpv_sort_key: test suffix order | Zac Medico | 2010-12-02 | 1 | -1/+1 |
| | |||||
* | add new cpv_sort_key() function | Zac Medico | 2010-12-01 | 1 | -1/+43 |
| | |||||
* | Fix catpkgsplit() to validate the category part. This fixes | Zac Medico | 2010-09-25 | 1 | -1/+3 |
| | | | | vardbapi.cp_all() to reject invalid categories. | ||||
* | Remove unused imports found by pylint. | Arfrever Frehtes Taifersar Arahesis | 2010-08-29 | 1 | -4/+2 |
| | |||||
* | Make cpv_getversion handle invalid cpv and add cpv_getversion to __all__. | Zac Medico | 2010-04-10 | 1 | -1/+3 |
| | |||||
* | Implement REPLACING_VERSIONS and REPLACED_BY_VERSION | Sebastian Luther | 2010-04-10 | 1 | -0/+5 |
| | |||||
* | Remove all svn $Id keywords. | Zac Medico | 2010-03-24 | 1 | -1/+0 |
| | |||||
* | Move portage.cpv_getkey() to the portage.versions module. | Zac Medico | 2010-02-20 | 1 | -0/+27 |
| | | | | svn path=/main/trunk/; revision=15410 | ||||
* | Revert r15161 so 12.2.5 is greater than 12.2b once again. Depending on how you | Zac Medico | 2010-01-04 | 1 | -16/+11 |
| | | | | | | | | look at, it may seem counter-intuitive. However, if you really think about it, it seems like it's probably safe to assume that 12.2.5 > 12.2b is the behavior that is intended by anyone who would use versions such as these. svn path=/main/trunk/; revision=15166 | ||||
* | Fix vercmp so 1b > 1 and add corresponding tests. | Zac Medico | 2010-01-04 | 1 | -1/+7 |
| | | | | svn path=/main/trunk/; revision=15162 | ||||
* | Revert vercmp() behavior so 12.2b > 12.2.5 which was accidentally changed in | Zac Medico | 2010-01-04 | 1 | -6/+11 |
| | | | | | | | r2309 (between portage-2.0.x and portage-2.1). Thanks to Brian Harring for reporting in bug #287848, comment #3. svn path=/main/trunk/; revision=15161 | ||||
* | Make pkgsplit() preserve 'null' category if it's present in the input. | Zac Medico | 2009-10-05 | 1 | -2/+3 |
| | | | | svn path=/main/trunk/; revision=14494 | ||||
* | Use the simpler/stricter _pkgspit in dbapi code. | Zac Medico | 2009-10-04 | 1 | -1/+6 |
| | | | | svn path=/main/trunk/; revision=14492 | ||||
* | Make pkgsplit() accept a cpv again, since accepting a pv only will probably | Zac Medico | 2009-10-04 | 1 | -3/+20 |
| | | | | | | | break lots of api consumers. Thanks to Romain Perier <mrpouet@g.o> for reporting epkginfo breakage. svn path=/main/trunk/; revision=14491 | ||||
* | Take regular expressions from portage.dep and use them to reimplement | Zac Medico | 2009-09-30 | 1 | -41/+33 |
| | | | | | | | portage.versions.pkgsplit(). This simplifies the code and helps guarantee consistency package name/version validation. svn path=/main/trunk/; revision=14466 | ||||
* | Update syntax of calls to print() for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -4/+4 |
| | | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290 | ||||
* | Reimplement isvalidatom() to use a single regular expression match. Thanks | Zac Medico | 2009-09-07 | 1 | -1/+3 |
| | | | | | | to Marat Radchenko <marat@slonopotamus.org> for this patch from bug #276813. svn path=/main/trunk/; revision=14213 | ||||
* | Optimize catpkgsplit() by creating a tuple directly instead of generating it | Zac Medico | 2009-09-07 | 1 | -4/+3 |
| | | | | | | | from a list. Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch. svn path=/main/trunk/; revision=14211 | ||||
* | In catpkgsplit(), use split('/', 1) since there should never be more than on | Zac Medico | 2009-09-07 | 1 | -1/+1 |
| | | | | | | slash to split. svn path=/main/trunk/; revision=14210 | ||||
* | Remove unnecessary redundant dict lookup at the beginning of catpkgsplit(). | Zac Medico | 2009-09-05 | 1 | -2/+0 |
| | | | | | | Thanks to Marat Radchenko <slonopotamusorama@gmail.com> for this patch. svn path=/main/trunk/; revision=14186 | ||||
* | Prepare 308 messages to localization. | Arfrever Frehtes Taifersar Arahesis | 2009-08-15 | 1 | -4/+5 |
| | | | | svn path=/main/trunk/; revision=14067 | ||||
* | Simplify pkgcmp(). Thanks to Douglas Anderson <dja@gendja.com> for this patch | Zac Medico | 2009-04-18 | 1 | -9/+1 |
| | | | | | | from bug #266493. svn path=/main/trunk/; revision=13354 | ||||
* | Bug #266493 - Never return a long from vercmp() since that can trigger an | Zac Medico | 2009-04-17 | 1 | -9/+19 |
| | | | | | | | | | OverflowError if it's returned by a __cmp__ implementation. Thanks to Douglas Anderson <dja@gendja.com> for the initial patch. I've modified it to use the (a > b) - (a < b) construct as suggested in the py3k docs, since cmp() is no longer supported in py3k. svn path=/main/trunk/; revision=13353 | ||||
* | Bug #227265 - Make pkgsplit() allow multiple consecutive hyphens in package | Zac Medico | 2009-03-26 | 1 | -7/+1 |
| | | | | | | names, and add corresponding test cases. svn path=/main/trunk/; revision=13187 | ||||
* | Bug #227265 - Make pkgsplit() allow "versiony looking parts" in package names, | Zac Medico | 2009-03-25 | 1 | -5/+0 |
| | | | | | | for pms compliance. Also, add corresponding test cases. svn path=/main/trunk/; revision=13185 | ||||
* | Normalize try/except indentation for compatibility with 2to3. | Zac Medico | 2009-03-20 | 1 | -4/+8 |
| | | | | svn path=/main/trunk/; revision=13139 | ||||
* | Remove category validation cruft from catpkgsplit(). | Zac Medico | 2008-05-25 | 1 | -5/+1 |
| | | | | svn path=/main/trunk/; revision=10400 | ||||
* | Check vercmp() return value to avoid arbitrary results in case it returns None | Marius Mauch | 2008-05-13 | 1 | -2/+4 |
| | | | | svn path=/main/trunk/; revision=10322 |