summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* elog/mod_save: ensure parent logdir existsZac Medico2011-07-112-2/+16
|
* resume_depgraph: fix breakage from reposyntaxZac Medico2011-07-111-1/+3
| | | | | This is a major regression that has been triggering lots of complaints about emerge --keep-going.
* elog/mod_save: use _ensure_log_subdirsZac Medico2011-07-113-19/+27
| | | | | This fixes permission issues with category subdirectories created for FEATURES=split-elog.
* prepare_build_dirs: copy logdir group permissionsZac Medico2011-07-111-10/+33
| | | | | The gid of PORT_LOGDIR is copied to all subdirectories, along with 0x2070 mode bits if present.
* Log maintainer info for pretend and nofetch.Zac Medico2011-07-111-4/+11
| | | | | | Also, suppress this maintainer info from going to stdout since it's intended for the log and it doesn't necessarily need to be visible elsewhere. This will fix bug #374809.
* prepare_build_dirs: warn for logdir permissionZac Medico2011-07-111-2/+13
| | | | | | If there is insufficient permission to use PORT_LOGDIR or the required subdirectory, warn instead of raising an exception. Also, fall back to using $T/build.log as a last resort.
* is_valid_package_atom: fix circular importZac Medico2011-07-112-16/+15
| | | | | | Due to a quirk in python import behavior, this only failed nondeterministically. However, the new preinst sanity test in the portage-9999 ebuild tends to trigger it more often for some people.
* Remove unused codecs import.Zac Medico2011-07-101-1/+0
|
* Migrate from codecs.open() to io.open().Zac Medico2011-07-1031-136/+176
| | | | | | | | | | | | | | | | | 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.
* Manifest: fix NameError in updateAllHashesZac Medico2011-07-101-1/+2
|
* circular_dependency: fix total_flags calcZac Medico2011-07-101-2/+2
|
* depgraph: more debug output for _add_pkgZac Medico2011-07-102-17/+44
| | | | | This should make it easier to debug cases like bug 374423, among others.
* slot_collision: fix more for bug 374423Zac Medico2011-07-101-0/+9
|
* slot_collision: fix AttributeError for bug 374423Zac Medico2011-07-101-0/+14
|
* depgraph: reject USE conditionals in argumentsZac Medico2011-07-091-0/+8
|
* circular_dependency: fix REQUIRED_USE testZac Medico2011-07-091-0/+17
|
* circular_dependency: fix ridiculously long loopZac Medico2011-07-091-10/+0
| | | | | | | | The flags from REQUIRED_USE were added to affecting_use, which was not really necessary and was a bad idea because a number of flags in affecting_use affects our number of loops exponentially. This will fix bug #374397 in which the large number of flags in the REQUIRED_USE of dev-lang/php-5.3.6-r1 triggered execution of 2 ^ 45 loops.
* slot_collision: be consistent with missing IUSEZac Medico2011-07-092-7/+32
| | | | | | Special handling for missing IUSE that was introduced in commit 9a193d42032005396800eb30e550691513529c79 is also useful in one more spot.
* circular_dependency: show debug graph earlierZac Medico2011-07-092-2/+11
| | | | | This might help in some cases like bug 374397 where we're troubleshooting the circular_dependency code.
* circular_dependency: use itertools.product()Zac Medico2011-07-091-24/+3
| | | | | Python's cartesian product function does exactly what we want, so use it to simplify our code.
* depgraph: include pkg.repo in debug outputZac Medico2011-07-091-2/+3
|
* RepoConfig: ignore missing name if no locationZac Medico2011-07-081-1/+3
| | | | This happens if there is an orphan entry in repos.conf.
* getportageversion: omit implicit -r0 for libcZac Medico2011-07-081-1/+4
|
* Qualify "missed update" message as WARNING.Zac Medico2011-07-081-2/+2
|
* repoman: tighten regex for useq and hasqZac Medico2011-07-081-3/+3
|
* repoman: centralize code for ignoring commentsZac Medico2011-07-081-6/+11
|
* repoman: check for deprecated useq and hasq callsDane Smith2011-07-082-1/+16
|
* cpv_expand: fix KeyError when settings is NoneZac Medico2011-07-071-1/+5
|
* Remove the _ensure_encodings module.Zac Medico2011-07-073-157/+1
| | | | | | | | This was only needed for ancient versions of python built with USE=build since the ebuilds used to remove the encodings module in that case. Since the StreamWriter and StreamReader classes may be deprecated in the near future, now would be a good time to stop using them.
* ebuild(1): allow-missing-manifests for fetchZac Medico2011-07-071-1/+4
|
* digestcheck: more allow-missing-manifestsZac Medico2011-07-071-0/+2
|
* digestcheck: support allow-missing-manifestsZac Medico2011-07-061-2/+7
| | | | Also, update the man page.
* add FEATURES=allow-missing-manifestsBrian Harring2011-07-062-1/+3
| | | | | | | The feature is as it sounds- primarily useful for temporary trees or instances where manifests aren't used. Signed-off-by: Brian Harring <ferringb@gmail.com>
* Show repository in error message about missing USE flags.Arfrever Frehtes Taifersar Arahesis2011-07-031-1/+1
|
* Fix a typo in a comment.Zac Medico2011-07-011-1/+1
|
* varexpand: remove escaped newline charactersZac Medico2011-07-012-5/+10
| | | | This fixes a regression reported in bug 365033, comment #14.
* preserve-libs: only preserve soname symlinksv2.2.0_alpha42Zac Medico2011-06-301-13/+13
| | | | | This avoids calling the LinkageMapELF.isMasterLink() method, since the only symlinks that are strictly required are the soname symlinks.
* LinkageMapElf.findConsumers(): fix $ROOT handlingZac Medico2011-06-301-1/+2
| | | | | The code which checks the soname symlink was missing a join with $ROOT.
* LinkageMapElf: clarify findConsumers soname codeZac Medico2011-06-301-4/+4
| | | | | | Here it referred to an soname symlink as a "master" link, which was inconsistent with the meaning of "master" link used in the isMasterLink() method.
* LinkageMapElf.isMasterLink(): handle libprocZac Medico2011-06-301-1/+10
| | | | | The version component of the libproc-3.2.8.so soname is formed slightly differently than most other libraries.
* UseFlagDisplay: fix USE_EXPAND_HIDDEN breakageZac Medico2011-06-301-1/+1
|
* Fix a typo in a comment.Zac Medico2011-06-301-1/+1
|
* Fix a typo in a docstring.Zac Medico2011-06-301-1/+1
|
* LinkageMapELF.isMasterLink(): literally compareZac Medico2011-06-301-3/+5
| | | | | | Comparing the lengths of the names alone seems like too much of an assumption, so literally compare the beginning of the soname to the basename of the given file.
* config: filter repo-level make.defaults earlierZac Medico2011-06-301-4/+5
|
* ebuild(1): use bintree.inject for "package" phaseZac Medico2011-06-291-2/+11
|
* Only create soname symlinks in global libdirs.Zac Medico2011-06-293-4/+44
| | | | | This prevents false positives for private libraries installed by pre-built packages under /opt.
* config.setcpv(): simplify repo_env codeZac Medico2011-06-291-4/+2
|
* env_update: document ldconfig -X for bug #373341Zac Medico2011-06-291-1/+8
|
* preserve-libs: don't preserve "master" symlinkZac Medico2011-06-291-1/+4
| | | | | There's no point in preserving the "master" symlink, since the soname symlink is all that's strictly required.