summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* When in strict mode, make paren_reduce() detect missing whitespace aroundZac Medico2008-03-281-0/+8
| | | | | | | | | parenthesis tokens and raise an InvalidDependString exception. Strict mode is not enabled when handling installed packages, so this will only affect repoman and packages that haven't been installed yet. Thanks to zlin for reporting. (trunk r9471) svn path=/main/branches/2.1.2/; revision=9556
* Bug #42456 - When a checksum failure occurs during fetch, use a newZac Medico2008-03-281-5/+25
| | | | | | | | | PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS config variable to control how many mirrors should be tried before aborting the download. This type of behavior used to be enabled only in --fetchonly mode but now it's enabled for all fetch() calls. (trunk r9462:9466) svn path=/main/branches/2.1.2/; revision=9554
* * Optimize parallel-fetch to avoid redundant checksum verification.Zac Medico2008-03-281-1/+23
| | | | | | | * Add parallel-fetch to the default FEATURES since it is more efficient now. (trunk r9462) svn path=/main/branches/2.1.2/; revision=9553
* Make strip_empty() return a nedw list instead of working in-place. Thanks toZac Medico2008-03-281-4/+1
| | | | | | René Neumann <rene.neumann@necoro.net> for the suggestion. (trunk r9460) svn path=/main/branches/2.1.2/; revision=9552
* As requested by wolf31o2, use the ROOT setting from make.conf as long asZac Medico2008-03-281-7/+2
| | | | | | it's not overridden by the calling environment. (trunk r9439) svn path=/main/branches/2.1.2/; revision=9549
* Remove redundant CUSTOM_PROFILE_PATH from the PROFILE_PATHS variable soZac Medico2008-03-281-1/+1
| | | | | | | that /etc/portage/profile/profile.bashrc will only be sourced once if it exists. (trunk r9435) svn path=/main/branches/2.1.2/; revision=9548
* Bug #212080 - Don't list files as being merged when they are ignored dueZac Medico2008-03-281-3/+2
| | | | | | to confmem. (trunk r9426) svn path=/main/branches/2.1.2/; revision=9545
* Bug #212152 - Check available space in DISTDIR before trying toZac Medico2008-03-281-2/+20
| | | | | | fetch/copy a file. (trunk r9425, r9502, and 9504:9506) svn path=/main/branches/2.1.2/; revision=9544
* Bug #200385 - Stack use flags from package.*use* files for multipleZac Medico2008-03-281-15/+48
| | | | | | matching atoms. (trunk r9408 and r9409:9415) svn path=/main/branches/2.1.2/; revision=9542
* Bug #211554 - Replace references to config["USE"] with references toZac Medico2008-03-281-60/+63
| | | | | | | | config["PORTAGE_USE"] (which is filtered for intersection with IUSE) so that dependency calculations at installation time are consistent with those at depclean time. (trunk r9391:9393) svn path=/main/branches/2.1.2/; revision=9540
* Revert portdbapi category auto-detection code since it's not really neededZac Medico2008-03-281-9/+4
| | | | | | | | and can cause problems if we need to add new non-category directories in the future. We only really need the category auto-detection for bindbapi and vardbapi anyway. (trunk r9368) svn path=/main/branches/2.1.2/; revision=9536
* Optimize dblink.isowner() to use fewer stat calls by doing a basenameZac Medico2008-03-281-1/+12
| | | | | | | | | comparison to try and eliminate the file before resorting to inode comparison. This speeds up the `portageq owners` command as well as the search that is done when collision-protect finds a collision. (trunk r9363) svn path=/main/branches/2.1.2/; revision=9534
* Make stack_dicts() treat an empty variable assignment just like a non-emptyZac Medico2008-03-281-1/+1
| | | | | | | assignment. This allows the profile to set and empty variable in make.defaults and have it override a non-empty value as one would expect. (trunk r9361) svn path=/main/branches/2.1.2/; revision=9532
* Bug #212882Zac Medico2008-03-271-3/+19
| | | | | | | | | | | | - For compatibility with ENOENT exceptions raised from fstat calls with CIFS, wrap fstat calls with an appropriate exception handler. (trunk r9474) - Fix lockfile() to handle errno.EACCES raised from the fcntl call since the spec says that it's equivalent to EAGAIN and it appears that CIFS returns EACCES in this case. (trunk r9458) svn path=/main/branches/2.1.2/; revision=9518
* revert previous commit since it had portage_locks stuff mixed inZac Medico2008-03-271-19/+3
| | | | svn path=/main/branches/2.1.2/; revision=9516
* Make --noreplace take precedence over --newuse, as suggested by wolf31o2.Zac Medico2008-03-271-3/+19
| | | | | | (trunk r9512:9514) svn path=/main/branches/2.1.2/; revision=9515
* Make 'import portage' statements more tolerant to broken source statementsZac Medico2008-03-012-3/+28
| | | | | | | | in make.conf since exceptions thrown during 'import portage' statements can practically render the api unusable for api consumers. Thanks to lxnay for the suggestion. (trunk r9400) svn path=/main/branches/2.1.2/; revision=9401
* Bug #211365 - Use catpkgsplit() instead of pkgsplit() on the cpv in theZac Medico2008-02-251-1/+2
| | | | | | | dblink constructor since otherwise weird categories containing numbers can make pkgsplit() return None (likely related to version regex handling). svn path=/main/branches/2.1.2/; revision=9383
* Bug #209538 - Disable annoying "masked by keyword" warnings for installedZac Medico2008-02-101-2/+14
| | | | | | | packages. We can assume that if the user accepted the keywords at merge time then they never want to be bothered again. (trunk r9330) svn path=/main/branches/2.1.2/; revision=9331
* Fix a changed variable name.Zac Medico2008-02-091-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=9306
* Use local time for elog summaries (trunk r9273)Zac Medico2008-02-092-2/+2
| | | | svn path=/main/branches/2.1.2/; revision=9303
* Bug #208708 - Show informative warning messages for installedZac Medico2008-02-091-2/+7
| | | | | | packages that are masked. (trunk r9301) svn path=/main/branches/2.1.2/; revision=9302
* Bug #155993 - Update environment.bz2 after postinst in caseZac Medico2008-02-071-1/+5
| | | | | | | installation phases need to pass some variables to uninstallation phases. (trunk r9281) svn path=/main/branches/2.1.2/; revision=9282
* Make the manifest1_compat constructor parameter default to FalseZac Medico2008-02-011-1/+1
| | | | | | | to prevent potential interference from stale old digest files in overlays. (trunk r9258) svn path=/main/branches/2.1.2/; revision=9259
* Unconditionally disable manifest1 compatibility since it's been droppedZac Medico2008-01-311-2/+1
| | | | | | from the main tree and nobody needs it anymore. (trunk r9252) svn path=/main/branches/2.1.2/; revision=9253
* Add 'local' to the list of non_category_dirs since it's commonlyZac Medico2008-01-311-1/+1
| | | | | | used for layman overlays. (trunk r9241) svn path=/main/branches/2.1.2/; revision=9248
* Bug #205966 - Don't show binhost password when displaying the uri. ThanksZac Medico2008-01-311-1/+4
| | | | | | to Mike "Fuzzy" Partin <fuzzyoni@gmail.com>. svn path=/main/branches/2.1.2/; revision=9237
* Bug #205318 - Handle errno.ENOTDIR thrown from the lstat callZac Medico2008-01-111-1/+1
| | | | | | inside dblink._security_check(). (trunk r9188) svn path=/main/branches/2.1.2/; revision=9189
* * 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
* Bug #203316 - Fix isvalidatom() to properly detect invalid operatorsZac Medico2008-01-111-1/+1
| | | | | | | used together with slot atoms. Thanks to Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com> for the patch. (trunk r9166) svn path=/main/branches/2.1.2/; revision=9174
* When spawing the "depend" phase, use file descriptors from sys.std*Zac Medico2008-01-111-1/+5
| | | | | | streams. (trunk r9157) svn path=/main/branches/2.1.2/; revision=9169
* Bug #162542 - When dropping privileges for FEATURES=userpriv,Zac Medico2008-01-101-1/+12
| | | | | | | | automatically detect permission problems with CCACHE_DIR and recursively adjust permissions only when necessary. (trunk r9160) svn path=/main/branches/2.1.2/; revision=9161
* Bug #204753 - Add "distfiles" and "packages" to the list ofZac Medico2008-01-071-2/+2
| | | | | | non-category directories. (trunk r9155) svn path=/main/branches/2.1.2/; revision=9156
* Bug #204020 - Make grabfile() properly raise PermissionDenied whenZac Medico2008-01-021-1/+3
| | | | | | | appropriate instead of silently ignoring permission errors. (trunk r9135) svn path=/main/branches/2.1.2/; revision=9136
* Bug #203919 - Define missing base_url variable to fix NameErrorZac Medico2007-12-311-0/+2
| | | | | | when using PORTAGE_BINHOST. svn path=/main/branches/2.1.2/; revision=9130
* When searching for "test" in IUSE, account for IUSE defaults.Zac Medico2007-12-311-1/+1
| | | | | | (trunk r9128) svn path=/main/branches/2.1.2/; revision=9129
* Fix config.setcpv() to properly call config.regenerate() in casesZac Medico2007-12-311-1/+8
| | | | | | | when USE needs to be regenerated due to FEATURES=test to USE=test mapping. (trunk r9126) svn path=/main/branches/2.1.2/; revision=9127
* Add PKGDIR to the config.environ() whitelist so that people'sZac Medico2007-12-291-2/+1
| | | | | | bashrc's don't break. (trunk r9114) svn path=/main/branches/2.1.2/; revision=9115
* Make the global counter file correspond toZac Medico2007-12-291-24/+37
| | | | | | | | the total number of installation actions that have occurred in the history of this package database. (trunk r9105) svn path=/main/branches/2.1.2/; revision=9106
* Remove redundant USERLAND sanity check code from doebuild() sinceZac Medico2007-12-291-4/+1
| | | | | | it's handled in isolated-functions.sh now. (trunk r9103) svn path=/main/branches/2.1.2/; revision=9104
* * Remove redundant lchown() compatibility code since theZac Medico2007-12-291-14/+8
| | | | | | | | | | | getattr(os, "lchown", None) call already handles it. * Simplify the userland detection code in portage.data and add a bash version of it to isolated-functions.sh. (trunk r9098:9101) svn path=/main/branches/2.1.2/; revision=9102
* Move XARGS initialization from portage.data to isolated-functions.sh.Zac Medico2007-12-292-4/+1
| | | | | | (trunk r9095:9097) svn path=/main/branches/2.1.2/; revision=9098
* * Initialize dbapi._categories = None so that we can compareZac Medico2007-12-291-8/+8
| | | | | | | | | with None instead of using hasattr. * Remove unwanted self._categories initialization from the portdbapi constructor. (trunk r9092) svn path=/main/branches/2.1.2/; revision=9093
* Move the USERLAND and XARGS sanity checks from the portage_dataZac Medico2007-12-292-16/+6
| | | | | | mule to doebuild(). svn path=/main/branches/2.1.2/; revision=9091
* Bug #121584 - Make the automatic USERLAND detection code recognizeZac Medico2007-12-291-2/+5
| | | | | | GNU/kFreeBSD. (trunk r9087) svn path=/main/branches/2.1.2/; revision=9088
* Make dep_expand() and key_expand() stop relyingZac Medico2007-12-281-6/+30
| | | | | | | | | | | on having a categories list: * Create and use a dbapi.categories property that is automatically generated from dbapi.cp_all(). * Make mutable dbapi instances delete the invalidate the cached categories when they need to be regenerated. (trunk r9079:9081) svn path=/main/branches/2.1.2/; revision=9082
* Just ignore it when the global counter file does not matchZac Medico2007-12-281-5/+0
| | | | | | | | | | the highest installed COUNTER since it's normal for them to differ in some cases. For example, the global counter file will contain a higher value if the user merges a package and then immediately unmerges it (unmerge does not update the global counter file, but merge does). (trunk r9078) svn path=/main/branches/2.1.2/; revision=9079
* Fixes for logic related to FEATURES=test to USE=test mapping:Zac Medico2007-12-281-11/+28
| | | | | | | | | | | | | | | | * Add EBUILD_FORCE_TEST to the environment whitelist and filter it from the saved environment in save_ebuild_env(). * Tweak logic inside the ebuild command and config.regenerate() so that EBUILD_FORCE_TEST works even in odd cases like when USE=test is masked. * Only make FEATURES=test map to USE=test when "test" is actually in IUSE. * Remove USE=test from the set of implicit IUSE so that useq() calls in ebuild.sh properly generate a QA Notice when "test" is missing from IUSE. (trunk r9063:9065) svn path=/main/branches/2.1.2/; revision=9076
* In getconfig(), pass the infile attribute into the shlexZac Medico2007-12-281-1/+4
| | | | | | | constructor so that shlex.sourcehook() properly joins relative paths. (trunk r9054) svn path=/main/branches/2.1.2/; revision=9071
* Fix "Initializing counter" message to show the correct value.Zac Medico2007-12-281-1/+1
| | | | | | (trunk r9053) svn path=/main/branches/2.1.2/; revision=9070