summaryrefslogtreecommitdiffstats
path: root/pym/portage/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* For bug #185930, direct all FETCHCOMMAND output to stdout.Zac Medico2007-07-211-0/+8
| | | | svn path=/main/trunk/; revision=7330
* When digest verification of a distfile fails, rename instead of unlinking it ↵Zac Medico2007-07-211-5/+18
| | | | | | in case it's a large download and the user wants to salvage it due to a bad digest. svn path=/main/trunk/; revision=7325
* If the fetcher reported success and the file is too small, don't attempt to ↵Zac Medico2007-07-201-2/+10
| | | | | | resume. Upstream probably changed the distfile and we need to show a digest verification failure so the user gets a clue. svn path=/main/trunk/; revision=7321
* disable FEATURES=gpg as it's unmaintained, useless and likely broken for ↵Marius Mauch2007-07-161-0/+3
| | | | | | many people svn path=/main/trunk/; revision=7278
* Save the repo name along with the other metadata inside dyn_compile() so ↵Zac Medico2007-07-131-0/+10
| | | | | | that it's saved inside binary packages for when they are finally merged. svn path=/main/trunk/; revision=7247
* For bug #184843, allow USE_EXPAND variables to pass through if none of their ↵Zac Medico2007-07-101-22/+37
| | | | | | flags are in IUSE. This allows packages that support LINGUAS but don't declare it in IUSE to use the variable outside of the USE_EXPAND context. svn path=/main/trunk/; revision=7218
* For bug #184604, make env-update write $ in front of quoted values when ↵Zac Medico2007-07-101-2/+6
| | | | | | appropriate. svn path=/main/trunk/; revision=7216
* For bug #184566, enable the emerge --info action to run an option pkg_info() ↵Zac Medico2007-07-081-2/+2
| | | | | | function from each installed ebuild. svn path=/main/trunk/; revision=7201
* When depgraph updates preferences for old-style virtuals, also update them ↵Zac Medico2007-07-061-7/+14
| | | | | | in the global config so that they are consistent everywhere. Optimize config.setinst() to minimize the work done. svn path=/main/trunk/; revision=7185
* Remove fallback imports for set(), and note minimum requirement of python-2.4Marius Mauch2007-07-051-2/+0
| | | | svn path=/main/trunk/; revision=7157
* For bug #183431, catch a ParseError caused by a corrupt profile and dump an ↵Zac Medico2007-06-281-1/+8
| | | | | | error message. This allows emerge to continue with actions that don't require a valid profile, such as --sync. svn path=/main/trunk/; revision=7073
* Send the ebuild die message through eerror and make sure that elog_process() ↵Zac Medico2007-06-271-13/+1
| | | | | | gets called when an ebuild dies. This makes the elog echo module display the die message last in case other elog messages push the original die message off of the top of the screen. svn path=/main/trunk/; revision=7047
* Short circuit the loop as soon as missing hashes are detected.Zac Medico2007-06-261-0/+1
| | | | svn path=/main/trunk/; revision=7042
* Add one more size == 0 check to digestgen().Zac Medico2007-06-261-0/+2
| | | | svn path=/main/trunk/; revision=7041
* Add sanity checks in fetch() and digestgen() to automatically detect and ↵Zac Medico2007-06-261-2/+26
| | | | | | handle invalid empty distfiles since some users have reported difficulty when trying to create digests. svn path=/main/trunk/; revision=7039
* For bug #182964, replace os.rename() with portage.movefile() in cases where ↵Zac Medico2007-06-241-0/+6
| | | | | | the parent directory might change. svn path=/main/trunk/; revision=6983
* add hashlib support for checksum verification, refactor checksum functions ↵Marius Mauch2007-06-231-1/+1
| | | | | | to not look like a complete mess svn path=/main/trunk/; revision=6972
* Clean up config.__getitem__(), get() and setdefault() implementions.Zac Medico2007-06-211-16/+13
| | | | svn path=/main/trunk/; revision=6920
* Simplify the implementation of config.__iter__ and also implement iterkeys().Zac Medico2007-06-211-5/+5
| | | | svn path=/main/trunk/; revision=6919
* Autodetect if sandbox is active in order to prevent recursive sandbox ↵Zac Medico2007-06-211-1/+1
| | | | | | invocation. Thanks to Brian Harring for the suggestion. svn path=/main/trunk/; revision=6917
* Implement config.has_key() on top of __contains__ instead of vice versa.Zac Medico2007-06-211-5/+5
| | | | svn path=/main/trunk/; revision=6916
* Remove lots of unnecessary list generation via dict.keys().Zac Medico2007-06-211-13/+22
| | | | svn path=/main/trunk/; revision=6911
* Make all the classes inherit from object.Zac Medico2007-06-201-4/+4
| | | | svn path=/main/trunk/; revision=6886
* For bug #180165, make portageq print a "Permission denied" error when ↵Zac Medico2007-06-201-3/+8
| | | | | | appropriate. A PermissionDenied exception is raised from portage.listdir() enven when EmptyOnError is True since errno.EACCES is very likely to indicate a condition that should be reported in any case. svn path=/main/trunk/; revision=6881
* Fix cacheddir() to behave properly if os.listdir() raises errno.EACCES ↵Zac Medico2007-06-191-1/+9
| | | | | | (Permission denied). svn path=/main/trunk/; revision=6879
* For bug #181355, detect parenthesis mismatch in paren_reduce(), raise an ↵Zac Medico2007-06-111-4/+12
| | | | | | InvalidDependString exception, and make sure that all callers handle the exception properly. svn path=/main/trunk/; revision=6796
* Preserve order of flags from IUSE in wildcard expansion.Zac Medico2007-06-101-1/+1
| | | | svn path=/main/trunk/; revision=6786
* For bug #148702, use the * token to trigger wildcard expansion of IUSE. ↵Zac Medico2007-06-091-13/+26
| | | | | | This adds flexibility and prevents flags from being enabled unexpectedly. svn path=/main/trunk/; revision=6784
* For bug #148702, automatically enable flags from IUSE if they correspond to ↵Zac Medico2007-06-091-2/+17
| | | | | | unset USE_EXPAND variables such as LINGUAS. The variable only has to be set to some value or an empty string in order to disable these flags. svn path=/main/trunk/; revision=6780
* For bug #152828, run ${CHOST}-ldconfig when ${CBUILD} != ${CHOST}.Zac Medico2007-06-091-8/+18
| | | | svn path=/main/trunk/; revision=6770
* Make all the python code respect USE conditionals in RESTRICT. It's already ↵Zac Medico2007-06-071-11/+13
| | | | | | handled on the bash side since RESTRICT is assigned the value of PORTAGE_RESTRICT. svn path=/main/trunk/; revision=6750
* When using a pty for logging, use setsid() to create a new session and make ↵Zac Medico2007-06-071-8/+43
| | | | | | the pty into the controlling terminal of the new session. This makes interactive ebuild behave properly in interactive cases like check_license() where ${PAGER:-less} is invoked. svn path=/main/trunk/; revision=6747
* For bug #82378, only set permissions on PORT_LOGDIR if it is created ↵Zac Medico2007-06-061-2/+4
| | | | | | automatically. svn path=/main/trunk/; revision=6743
* Comment in portage.movefile() that it's impossible to preserve timestamps of ↵Zac Medico2007-06-061-0/+2
| | | | | | a symlink since utime() only works on the target. svn path=/main/trunk/; revision=6740
* Fix typo, split SPACE_SEPARATED variables on whitespace.Zac Medico2007-06-061-1/+1
| | | | svn path=/main/trunk/; revision=6738
* Remove duplicate entries from special variables processed by env_update() ↵Marius Mauch2007-06-051-2/+6
| | | | | | (bug #172194) svn path=/main/trunk/; revision=6736
* Make dep_zapdeps() pull SLOT from the correct dbapi instance when it falls ↵Zac Medico2007-05-311-3/+8
| | | | | | back to the vdb. svn path=/main/trunk/; revision=6698
* Don't try to perform global updates on binary packages unless $PKGDIR is ↵Zac Medico2007-05-311-9/+14
| | | | | | writable. svn path=/main/trunk/; revision=6691
* Make automatic "global updates" always use the config instance that's ↵Zac Medico2007-05-311-3/+2
| | | | | | associated with /, since the rest of the code is targeted at /. svn path=/main/trunk/; revision=6687
* Create one unified dbapi.update_ents() method and use it for both ↵Zac Medico2007-05-311-1/+4
| | | | | | fixpackages and the emaint move{inst,bin} targets. svn path=/main/trunk/; revision=6686
* For bug #61732, support -flag in USE (instead of just +flag). Given the ↵Zac Medico2007-05-301-1/+6
| | | | | | current default USE_ORDER, -flag in IUSE has no effect. svn path=/main/trunk/; revision=6671
* For bug #179870, correctly handle slot deps in the profile's package.* files.Zac Medico2007-05-291-12/+12
| | | | svn path=/main/trunk/; revision=6665
* For bug #179870, add support for cpv:slot in match_from_list() and use it to ↵Zac Medico2007-05-291-1/+4
| | | | | | make config.setcpv() distinguish slot atoms in package.use. svn path=/main/trunk/; revision=6657
* Add new emaint targets called "moveinst" and "movebin" for applying package ↵Zac Medico2007-05-281-4/+14
| | | | | | moves from $PORTDIR/profiles/updates/ on installed packages and binary packages. svn path=/main/trunk/; revision=6652
* Fix logic for USE_EXPAND variables that are incremental (there are none ↵Zac Medico2007-05-261-9/+17
| | | | | | currently). svn path=/main/trunk/; revision=6635
* Store flags as a set inside the USE incremental loop.Zac Medico2007-05-251-10/+8
| | | | svn path=/main/trunk/; revision=6627
* Call tcgetattr and tcsetattr on the slave end of the pty in order to avoid ↵Zac Medico2007-05-251-2/+2
| | | | | | an "invalid argument" error on Solaris. Thanks to grobian. svn path=/main/trunk/; revision=6625
* For bug #179766, expand USE_EXPAND variables inside the USE incremental loop ↵Zac Medico2007-05-251-24/+25
| | | | | | so that USE"-*" will not always destroy them. svn path=/main/trunk/; revision=6623
* To ease the namespace transition, automatically translate cache.* to ↵Zac Medico2007-05-251-2/+9
| | | | | | portage.cache.* if an ImportError occurs. svn path=/main/trunk/; revision=6620
* When ${PKGDIR}/All/ doesn't exist, put packages in ${PKGDIR}/${CATEGORY}/ ↵Zac Medico2007-05-221-5/+0
| | | | | | instead. This new layout is backward compatible with portage-2.1.2 and it will be a requirement for new PORTAGE_BINHOST support that is comming. svn path=/main/trunk/; revision=6568