summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/env_update.py
Commit message (Collapse)AuthorAgeFilesLines
* env_update: use eroot variable moreZac Medico2012-09-231-10/+7
|
* env_update: scan all dirs starting with "lib"Zac Medico2012-09-231-4/+19
| | | | | Also see bug #435834 and commit 7fb9758506341ffc05585fbd18f2be58ef0e16c2.
* env_update: ldsoconf_update flag not reliableZac Medico2012-01-091-4/+0
| | | | | | | The ldsoconf_update flag was not a reliable indicator of whether or not ldconfig needs to be called, since ld.so.conf can have lines like "include ld.so.conf.d/*.conf" that pull in outside content which may have changed without being detected.
* Use portage.const.EPREFIX more.Zac Medico2011-12-091-1/+1
|
* env_update: lstrip os.sep in join with eprefixZac Medico2011-10-291-1/+2
|
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-3/+9
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* env_update: add more vardbapi fallback codeZac Medico2011-09-181-1/+9
| | | | | | For API consumers that call this function without the vardbapi parameter, it whould continue to work correctly in all the cases that worked before the vardbapi was added.
* env_update: use global vardbapi as fallbackZac Medico2011-09-181-1/+7
|
* move locking into env_update itselfBrian Harring2011-09-151-1/+16
|
* tests/emerge: test env-updateZac Medico2011-09-051-1/+1
|
* Fix typo in previous commit.Zac Medico2011-08-301-1/+1
|
* env_update: use ldsoconf_update varZac Medico2011-08-301-0/+1
| | | | | | | This fixes an unintended change in behavior from commit a37eb8ebd2fad3f8074490a061f067e2c637f05d, so that the ldconfig call will not be skipped when ld.so.conf has been updated (though ldconfig is still never called when makelinks=False).
* env_update: always respect makelinks=FalseZac Medico2011-08-291-7/+4
| | | | | | | | | | | | This ensures that the env-update --no-ldconfig option is always respected. Also, in order to preserve behavior during downgrades for an env_update call in vartree.py, remove the makelinks=False for downgrades since it wasn't respected anyway when lib path mtimes had changed, and we don't want it to behave differently in this case now that makelinks=False is always respected. Note that the unconditional use of the ldconfig -X option (from bug #373341) since commit e1347f9c0dd5ef5ff1a50d6b136b0648efb8a6ca may also come into play for downgrades.
* env_update: fix breakage in last commitZac Medico2011-08-291-1/+1
|
* env_update: fix CHOST/CBUILD ldconfig codeZac Medico2011-08-291-4/+6
| | | | | | This code never worked (since it was added in commit 751893b0272561eb9274110a474d5436a7d2bc76) due to a name collision between the env argument and another variable with the same name.
* env_update: add minimal EPREFIX supportZac Medico2011-08-281-8/+14
| | | | | | | This takes EPREFIX from the env argument and uses it when joining all paths. Also, ldconfig calls are disabled when EPREFIX is non-empty, since it's inappropriate to update the global /etc/ld.so.cache in this case.
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-2/+2
| | | | | | | | | | | | | | | | | The io.open() function is the same as the built-in open() function in python3, and its implementation is optimized in python-2.7 and later. In addition to the possible performance improvement, this also allows us to avoid any future compatibility issues with codecs.open() that may arise if it is delegated to the built-in open() function as discussed in PEP 400. The main caveat involved with io.open() is that TextIOWrapper.write() raises TypeError if given raw bytes, unlike the streams returned from codecs.open(). This is mainly an issue for python2 since literal strings are raw bytes. We handle this by wrapping TextIOWrapper.write() arguments with our _unicode_decode() function. Also, the atomic_ofstream class overrides the write() method in python2 so that it performs automatic coercion to unicode when necessary.
* env_update: document ldconfig -X for bug #373341Zac Medico2011-06-291-1/+8
|
* Don't ever recreate root .so links on env-update.Michał Górny2011-06-291-4/+1
| | | | | | We install .so symlinks with packages, so let's use that instead of letting ldconfig update them for no reason. This should fix problems with preserved-libs.
* Update header timestamps for modified files.Zac Medico2011-03-251-1/+1
|
* env_update: remove sleep_for_mtime_granularityDavid James2011-03-251-11/+7
| | | | | | | | Instead of sleeping, use os.utime to avoid mtime ambiguity. Change-Id: I359ececca19b6be9f5997ac5c8fe6fea6ea49dd5 Review URL: http://codereview.chromium.org/6676150
* Revert back to using ROOT for env_update(), since that's how theZac Medico2010-08-211-2/+2
| | | | prefix branch does it.
* Fix env_update() calls to use EROOT.Zac Medico2010-08-211-1/+4
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Define 'long' for Python 3.Arfrever Frehtes Taifersar Arahesis2010-02-251-0/+4
| | | | svn path=/main/trunk/; revision=15455
* Move env_update to portage.util.env_update.envupdate.Zac Medico2010-02-251-0/+287
svn path=/main/trunk/; revision=15452