Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | data.py: stat EROOT for PORTAGE_GRPNAME/USERNAME | Zac Medico | 2011-12-21 | 1 | -12/+36 |
| | | | | | The config class has equivalent code, but we also need to do it here if _disable_legacy_globals() has been called. | ||||
* | data.py: tweak getgrnam call for PyPy | Zac Medico | 2011-12-15 | 1 | -1/+6 |
| | | | | | This makes it unnecessary to explicitly call portage.data._init() in runTests, and fixes some other cases that trigger the same issue. | ||||
* | data._init(): use 'portage' default in first callv2.2.0_alpha80 | Zac Medico | 2011-12-11 | 1 | -9/+7 |
| | |||||
* | data.py: avoid portage.settings when possible | Zac Medico | 2011-12-10 | 1 | -4/+16 |
| | |||||
* | data.py: rename var to _portage_username | Zac Medico | 2011-12-10 | 1 | -8/+8 |
| | |||||
* | config: init data/output modules in constructor | Zac Medico | 2011-12-10 | 1 | -2/+3 |
| | | | | | The first constructed config object initializes these modules, and subsequent calls to the _init() functions have no effect. | ||||
* | Use portage.const.EPREFIX more. | Zac Medico | 2011-12-09 | 1 | -1/+1 |
| | |||||
* | data.py: grp/pwd struct attrs, not indexes | Zac Medico | 2011-12-09 | 1 | -2/+2 |
| | |||||
* | Enable PORTAGE_GRPNAME/USERNAME in make.conf. | Zac Medico | 2011-12-08 | 1 | -56/+113 |
| | | | | | | | | This is handy for prefix installs, since it allows these variables to be set in make.conf rather than having them hardcoded. Eventually, the corresponding portage.data constants may be deprecated in favor of config attributes, since it's conceivable that multiple configurations with different constants could be used simultaneously. | ||||
* | emerge: add simple unit tests | Zac Medico | 2011-08-28 | 1 | -0/+3 |
| | | | | | | | These tests are similar to the repoman tests, using a __PORTAGE_TEST_EPREFIX environment variable to make emerge confine itself to a testing prefix so that things like install and uninstall operations can be performed. | ||||
* | Remove unused imports found by pylint. | Arfrever Frehtes Taifersar Arahesis | 2010-08-29 | 1 | -2/+2 |
| | |||||
* | Remove support for the missingos module since apparently nobody has needed | Zac Medico | 2010-08-22 | 1 | -9/+5 |
| | | | | it for a long time. | ||||
* | * Add support for PORTAGE_USERNAME and PORTAGE_GRPNAME | Zac Medico | 2010-07-14 | 1 | -3/+7 |
| | | | | | | | | | | | | environment variables, for use within the chromium-os build environment. * Add PORTAGE_USERNAME and PORTAGE_GRPNAME to the environment whitelist and filter them from the saved environment. Note: In order to support PORTAGE_USERNAME and PORTAGE_GRPNAME settings in make.conf, the associated portage.data attributes may be relocated to the config class in the future. | ||||
* | Revert formatting so chromioumos-overlay won't have to rebase | Zac Medico | 2010-04-27 | 1 | -2/+2 |
| | | | | set_portage_username-2.1.6.13.patch. | ||||
* | Make spawning of `id -G portage` happen lazily when userpriv_groups is first | Zac Medico | 2010-04-10 | 1 | -17/+22 |
| | | | | accessed. | ||||
* | Remove PORTAGE_USERNAME and PORTAGE_GROUPNAME support for now since antarus | Zac Medico | 2010-04-06 | 1 | -4/+3 |
| | | | | says he wants it to work via make.conf, requiring redesign. | ||||
* | Use PORTAGE_USERNAME when populating userpriv_groups. | Zac Medico | 2010-03-25 | 1 | -1/+1 |
| | |||||
* | Remove all svn $Id keywords. | Zac Medico | 2010-03-24 | 1 | -1/+0 |
| | |||||
* | Add support for PORTAGE_USERNAME and PORTAGE_GROUPNAME environment | Zac Medico | 2010-03-23 | 1 | -2/+3 |
| | | | | | variables. Thanks to Alec Warner <antarus@g.o> for submitting the initial PORTAGE_USERNAME patch from chromiumos-overlay. | ||||
* | Fix conditional logic for userpriv_groups intialization. | Zac Medico | 2010-01-30 | 1 | -19/+20 |
| | | | | svn path=/main/trunk/; revision=15279 | ||||
* | Define userpriv_groups earlier in order to avoid an AttributeError from | Zac Medico | 2010-01-29 | 1 | -0/+1 |
| | | | | | | lazy import code. Thanks to antarus for reporting. svn path=/main/trunk/; revision=15277 | ||||
* | Update system imports for compatibility with Python 3. | Arfrever Frehtes Taifersar Arahesis | 2009-09-20 | 1 | -1/+4 |
| | | | | svn path=/main/trunk/; revision=14294 | ||||
* | Prepare 308 messages to localization. | Arfrever Frehtes Taifersar Arahesis | 2009-08-15 | 1 | -7/+8 |
| | | | | svn path=/main/trunk/; revision=14067 | ||||
* | Use a single sys.hexversion conditional for both _unicode_func_wrapper() | Zac Medico | 2009-08-12 | 1 | -2/+1 |
| | | | | | | and _unicode_module_wrapper(). svn path=/main/trunk/; revision=14008 | ||||
* | Wrap portage.data.lchown() for unicode support in python-2.x. | Zac Medico | 2009-08-11 | 1 | -0/+3 |
| | | | | svn path=/main/trunk/; revision=14001 | ||||
* | Use lazyimport to avoid importing the dep, output, update, and versions | Zac Medico | 2009-02-22 | 1 | -5/+2 |
| | | | | | | modules when portage is initially imported. svn path=/main/trunk/; revision=12681 | ||||
* | Use lazyimport to avoid importing the checksum, locks, and util modules | Zac Medico | 2009-02-22 | 1 | -2/+7 |
| | | | | | | when portage is initially imported. svn path=/main/trunk/; revision=12680 | ||||
* | Bug #253563 - Replace hardcoded green/red color strings with GOOD/BAD. Thanks | Zac Medico | 2009-01-09 | 1 | -13/+13 |
| | | | | | | to Vsevolod Kozlov <sevakda@gmail.com> for the initial patch. svn path=/main/trunk/; revision=12401 | ||||
* | Use "platform" module instead of os.uname, or -- even worse -- a system | Zac Medico | 2008-06-04 | 1 | -2/+2 |
| | | | | | | | | | call to uname. Change repoman's identification string not to use "processor" on Linux (where it is huge), Interix (where it doesn't exist) and AIX/HP-UX (where it prints "unknown"), but "machine" instead. (branches/prefix r10554) svn path=/main/trunk/; revision=10574 | ||||
* | As suggested by grobian, treat Darwin just like USERLAND=gnu | Zac Medico | 2007-12-29 | 1 | -3/+1 |
| | | | | | | since they seem to be switching commands to gnu anyway. svn path=/main/trunk/; revision=9118 | ||||
* | Fix broken Darwin USERLAND detection. | Zac Medico | 2007-12-29 | 1 | -1/+3 |
| | | | | svn path=/main/trunk/; revision=9116 | ||||
* | Add back support for silent definition of the dummy lchown() | Zac Medico | 2007-12-29 | 1 | -0/+4 |
| | | | | | | function when ostype == Darwin. svn path=/main/trunk/; revision=9101 | ||||
* | Simplify the userland detection code in portage.data and add | Zac Medico | 2007-12-29 | 1 | -10/+5 |
| | | | | | | a bash version of it to isolated-functions.sh. svn path=/main/trunk/; revision=9100 | ||||
* | Remove redundant lchown() compatibility code since the | Zac Medico | 2007-12-29 | 1 | -6/+0 |
| | | | | | | getattr(os, "lchown", None) call already handles it. svn path=/main/trunk/; revision=9099 | ||||
* | Move XARGS initialization from portage.data to isolated-functions.sh. | Zac Medico | 2007-12-29 | 1 | -3/+0 |
| | | | | svn path=/main/trunk/; revision=9096 | ||||
* | Bug #121584 - Make the automatic USERLAND detection code recognize | Zac Medico | 2007-12-29 | 1 | -1/+3 |
| | | | | | | GNU/kFreeBSD. svn path=/main/trunk/; revision=9087 | ||||
* | Remove fallback imports for set(), and note minimum requirement of python-2.4 | Marius Mauch | 2007-07-05 | 1 | -3/+0 |
| | | | | svn path=/main/trunk/; revision=7157 | ||||
* | Remove old wheel group warnings since portage stopped using this group long ago. | Zac Medico | 2007-06-30 | 1 | -4/+0 |
| | | | | svn path=/main/trunk/; revision=7099 | ||||
* | Provide a default value to the getattr call. | Zac Medico | 2007-04-05 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=6344 | ||||
* | Make sure XARGS has a default value. | Zac Medico | 2007-04-05 | 1 | -0/+1 |
| | | | | svn path=/main/trunk/; revision=6343 | ||||
* | Don't force OS detection in the portage.data module. | Zac Medico | 2007-04-05 | 1 | -4/+2 |
| | | | | svn path=/main/trunk/; revision=6342 | ||||
* | Don't set os.environ["USERLAND"] inside portage.data and rely on USERLAND ↵ | Zac Medico | 2007-04-05 | 1 | -2/+0 |
| | | | | | | from the profile instead (bail out if necessary when USERLAND is unset). svn path=/main/trunk/; revision=6341 | ||||
* | Add missing sys import. | Zac Medico | 2007-03-03 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=6146 | ||||
* | Namespace sanitizing, step 3 | Marius Mauch | 2007-01-25 | 1 | -3/+3 |
| | | | | svn path=/main/trunk/; revision=5782 | ||||
* | Namespace sanitizing, step 2 | Marius Mauch | 2007-01-25 | 1 | -2/+2 |
| | | | | | | | Rename portage.exec to portage.process to avoid syntax errors svn path=/main/trunk/; revision=5780 | ||||
* | Namespace sanitizing, step 1 | Marius Mauch | 2007-01-25 | 1 | -0/+126 |
svn path=/main/trunk/; revision=5778 |