summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
Commit message (Collapse)AuthorAgeFilesLines
* In dblink.treewalk(), handle the case where the current cpv is already ↵v2.1.2.11Zac Medico2007-07-311-0/+5
| | | | | | installed but it has a different slot (multislot or unapplied slotmove). (branches/2.1.2 r6834) svn path=/main/branches/2.1.2.9/; revision=7532
* Initialize dblink.contentscache to None since getcontents() expects that now.Zac Medico2007-07-301-1/+1
| | | | svn path=/main/branches/2.1.2.9/; revision=7519
* For bug #186960, try to create a directory for $ROOT if it doesn't exist. ↵Zac Medico2007-07-301-0/+1
| | | | | | (branches/2.1.2 r7517) svn path=/main/branches/2.1.2.9/; revision=7518
* Remove some useless dircache code. (branches/2.1.2 r6819)Zac Medico2007-07-301-6/+1
| | | | svn path=/main/branches/2.1.2.9/; revision=7515
* Make dblink invalidate the vardbapi caches for each merge and unmerge. ↵Zac Medico2007-07-301-6/+22
| | | | | | | | Don't use portage.listdir() since mtime granularity can prevent cachedir from invalidating it's cache properly and this redundant cache layer isn't needed anyway. This should solve the intermittent failure of AUTOCLEAN to properly clean packages. (branches/2.1.2 r7205) svn path=/main/branches/2.1.2.9/; revision=7514
* For bug #182964, replace os.rename() with portage.movefile() in cases where ↵Zac Medico2007-07-301-5/+13
| | | | | | the parent directory might change. (branches/2.1.2 r6984) svn path=/main/branches/2.1.2.9/; revision=7513
* For bug #185930, direct all FETCHCOMMAND output to stdout. (branches/2.1.2 ↵Zac Medico2007-07-301-0/+8
| | | | | | r7331) svn path=/main/branches/2.1.2.9/; revision=7503
* For bug #162923, when digest verification of a distfile fails, rename ↵Zac Medico2007-07-301-5/+18
| | | | | | instead of unlinking it in case it's a large download and the user wants to salvage it due to a bad digest. (branches/2.1.2 r7326) svn path=/main/branches/2.1.2.9/; revision=7502
* If the fetcher reported success and the file is too small, don't attempt to ↵Zac Medico2007-07-301-2/+10
| | | | | | resume. Upstream probably changed the distfile and we need to show a digest verification failure so the user gets a clue. (branches/2.1.2 r7322) svn path=/main/branches/2.1.2.9/; revision=7501
* For bug #183431, catch a ParseError caused by a corrupt profile and dump an ↵Zac Medico2007-07-301-1/+8
| | | | | | error message. This allows emerge to continue with actions that don't require a valid profile, such as --sync. (branches/2.1.2 r7074) svn path=/main/branches/2.1.2.9/; revision=7486
* Add sanity checks in fetch() and digestgen() to automatically detect and ↵Zac Medico2007-07-301-2/+29
| | | | | | handle invalid empty distfiles since some users have reported difficulty when trying to create digests. (branches/2.1.2 r7039:7045) svn path=/main/branches/2.1.2.9/; revision=7485
* get ACCEPT_KEYWORDS from the env in gvisible() to properly handle negated ↵Zac Medico2007-07-301-0/+8
| | | | | | values (bug #139600) (branches/2.1.2 r6998) svn path=/main/branches/2.1.2.9/; revision=7481
* Clean up the profile masking code. (branches/2.1.2 r6936)Zac Medico2007-07-301-9/+5
| | | | svn path=/main/branches/2.1.2.9/; revision=7479
* fix grammar in error output (branches/2.1.2 r6905)Zac Medico2007-07-301-1/+1
| | | | svn path=/main/branches/2.1.2.9/; revision=7473
* For bug #180165, make portageq print a "Permission denied" error when ↵Zac Medico2007-07-301-3/+8
| | | | | | appropriate and make has_version die if portageq has an unexpected exit code. (branches/2.1.2 r6885) svn path=/main/branches/2.1.2.9/; revision=7470
* Fix cacheddir() to behave properly if os.listdir() raises errno.EACCES ↵Zac Medico2007-07-301-1/+9
| | | | | | (Permission denied). (branches/2.1.2 r6880) svn path=/main/branches/2.1.2.9/; revision=7468
* For bug #143340, give an appropriate message when there is no read access to ↵Zac Medico2007-07-301-0/+6
| | | | | | a binary package. (branches/2.1.2 r6878) svn path=/main/branches/2.1.2.9/; revision=7467
* For bug #182157, never chmod 0 symlinks before unlinking them. ↵Zac Medico2007-07-301-1/+2
| | | | | | (branches/2.1.2 r6849) svn path=/main/branches/2.1.2.9/; revision=7464
* Fix dblink.isowner() so it works properly when ROOT!=/. (branches/2.1.2 r6828)Zac Medico2007-07-301-1/+1
| | | | svn path=/main/branches/2.1.2.9/; revision=7462
* Always return a dict from dblink.getcontents() since callers never expect to ↵Zac Medico2007-07-301-9/+17
| | | | | | get None. (branches/2.1.2 r6817) svn path=/main/branches/2.1.2.9/; revision=7461
* For bug #181355, detect parenthesis mismatch in paren_reduce(), raise an ↵Zac Medico2007-07-301-4/+12
| | | | | | InvalidDependString exception, and make sure that all callers handle the exception properly. (branches/2.1.2 r6798) svn path=/main/branches/2.1.2.9/; revision=7459
* For bug #181551, support slot deps in package.keywords. (branches/2.1.2 r6791)Zac Medico2007-07-301-3/+5
| | | | svn path=/main/branches/2.1.2.9/; revision=7458
* For bug #152828, run -ldconfig when != . (branches/2.1.2 r6771)Zac Medico2007-07-301-10/+20
| | | | svn path=/main/branches/2.1.2.9/; revision=7455
* Make all the python code respect USE conditionals in RESTRICT. It's already ↵Zac Medico2007-07-301-15/+15
| | | | | | handled on the bash side since RESTRICT is assigned the value of PORTAGE_RESTRICT. (branches/2.1.2 r6763:6765) svn path=/main/branches/2.1.2.9/; revision=7452
* When dblink.treewalk() looks for an installed instance in the same slot, ↵Zac Medico2007-07-301-0/+8
| | | | | | make sure that it selects the one with the highest COUNTER in case there are multiple matches. (branches/2.1.2 r6758) svn path=/main/branches/2.1.2.9/; revision=7448
* Remove duplicate entries from special variables processed by env_update() ↵Zac Medico2007-07-301-2/+6
| | | | | | (bug #172194) (branches/2.1.2 r6757 and r6759) svn path=/main/branches/2.1.2.9/; revision=7447
* For bug #82378, only set permissions on PORT_LOGDIR if it is created ↵Zac Medico2007-07-301-2/+4
| | | | | | automatically. (branches/2.1.2 r6744) svn path=/main/branches/2.1.2.9/; revision=7443
* Instead of calling sys.exit() when aux_get() fails inside getfetchlist(), ↵Zac Medico2007-07-301-2/+4
| | | | | | convert the KeyError to an InvalidDependString exception since callers already handle it. (branches/2.1.2 r6715) svn path=/main/branches/2.1.2.9/; revision=7440
* Don't repeatedly invoke the depend phase for ebuilds that are already known ↵Zac Medico2007-07-301-0/+4
| | | | | | to be broken. (branches/2.1.2 r6714) svn path=/main/branches/2.1.2.9/; revision=7439
* For bug #149397, raise an InvalidDependString exception if a USE has no ↵Zac Medico2007-07-301-0/+2
| | | | | | basename. (branches/2.1.2 r6713) svn path=/main/branches/2.1.2.9/; revision=7438
* Make dep_zapdeps() pull SLOT from the correct dbapi instance when it falls ↵Zac Medico2007-07-301-1009/+585
| | | | | | back to the vdb. (branches/2.1.2 r6700) svn path=/main/branches/2.1.2.9/; revision=7435
* For bug #187016, and env.d to the default USE_ORDER. (trunk r7426:7428)Zac Medico2007-07-291-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7429
* For pty logging, handle the EAGAIN error that is thrown from fcntl when the ↵Zac Medico2007-07-291-2/+10
| | | | | | slave end of the pty is closed on FreeBSD. (trunk r7424) svn path=/main/branches/2.1.2/; revision=7425
* For bug #186876, fall back it os.pipe() if pty.openpty() fails. (trunk r7422)Zac Medico2007-07-281-3/+10
| | | | svn path=/main/branches/2.1.2/; revision=7423
* When the fetch phase fails inside doebuild(), create an eerror log since the ↵v2.1.3Zac Medico2007-07-281-0/+13
| | | | | | mod_echo module might push the original message off of the top of the terminal and prevent the user from being able to see it. (trunk r7419) svn path=/main/branches/2.1.2/; revision=7420
* Handle 2 more cases where elog_process() needs to be called:Zac Medico2007-07-281-0/+14
| | | | | | | | - binary install via pkgmerge() fails before reaching the merge phase (pkg_setup dies) - doebuild() is called for the merge phase but it dies before reaching the merge phase (trunk r7417) svn path=/main/branches/2.1.2/; revision=7418
* When setting the size of the pty for logging, check if stdout isatty rather ↵Zac Medico2007-07-261-2/+1
| | | | | | than stdin. (trunk r7400) svn path=/main/branches/2.1.2/; revision=7401
* Merge the portage.spawn() implementation with pty logging from trunk:Zac Medico2007-07-251-31/+73
| | | | | | | | | - Sending output through the pty device makes logging compatible with sesandbox and the default selinux security policy (see bug #162404). - Having a pty device for stdout makes $PAGER behave nicely for things like check_license() from eutils.eclass. svn path=/main/branches/2.1.2/; revision=7395
* Add droppriv keyword for the depend phase (last one). (trunk r7387)Zac Medico2007-07-241-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7388
* Add droppriv keyword for the depend phase. (trunk r7385)Zac Medico2007-07-241-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7386
* Add FEATURES=fakeroot support which causes install and package phases to run ↵Zac Medico2007-07-241-21/+23
| | | | | | inside fakeroot when a non-root user runs the ebuild command. Thanks to swegener for the initial patch. (trunk r7379) svn path=/main/branches/2.1.2/; revision=7380
* Drop privileges in the "depend" phase regardless of FEATURES and RESTRICT ↵Zac Medico2007-07-231-10/+12
| | | | | | since that phase should never need special privileges. Thanks to swegener for the initial patch. (trunk r7373) svn path=/main/branches/2.1.2/; revision=7374
* For bug #185930, direct all FETCHCOMMAND output to stdout. (trunk r7330)Zac Medico2007-07-211-0/+8
| | | | svn path=/main/branches/2.1.2/; revision=7331
* 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. (trunk r7325) svn path=/main/branches/2.1.2/; revision=7326
* 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. (trunk r7321) svn path=/main/branches/2.1.2/; revision=7322
* Merge --depclean and --prune enhancements from trunk r7304:7310.Zac Medico2007-07-201-4/+1
| | | | svn path=/main/branches/2.1.2/; revision=7311
* For bug #185389, create a symlink when quickpkg injects a new package.Zac Medico2007-07-151-1/+2
| | | | svn path=/main/branches/2.1.2/; revision=7269
* Merge the new repo display code from trunk r7257:7260.Zac Medico2007-07-141-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7261
* Save the repo name along with the other metadata inside dyn_compile() so ↵Zac Medico2007-07-131-13/+10
| | | | | | that it's saved inside binary packages for when they are finally merged. (trunk r7247) svn path=/main/branches/2.1.2/; revision=7248
* Fix typo. (trunk r7228)Zac Medico2007-07-111-1/+1
| | | | svn path=/main/branches/2.1.2/; revision=7229