summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* Set PORTAGE_REPO_NAME for depend phase.Zac Medico2011-07-141-0/+1
|
* debuild: pass manifest to digestcheck()v2.2.0_alpha45Zac Medico2011-07-132-3/+4
| | | | This allows us to avoid parsing the Manifest twice.
* doebuild: discard cached manifest when necessaryZac Medico2011-07-131-1/+8
| | | | | When we call digestgen(), it can regenerate our distfiles digests and we don't wan to cache stale values in this case.
* debuild: pass dist digests to fetch()Zac Medico2011-07-132-2/+7
| | | | This allows us to avoid parsing the Manifest twice.
* Revert "ebuild(1): allow-missing-manifests for fetch"Zac Medico2011-07-131-4/+2
| | | | | | | | | | This reverts commit 62712db56bb863b4eb0a9d9c52e7b2c3ad38df66. This code already defaulted to the allow-missing-manifests behavior, since the fetch() allow_missing_digests argument default is true. By making the argument conditional on allow-missing-manifests, it changed the behavior in the default case where allow-missing-manifests is disabled.
* Protect EBUILD_{FORCE_TEST,SKIP_MANIFEST} vars.Zac Medico2011-07-131-1/+2
| | | | | These belong in the blacklist, in order to avoid potential interference from the calling environment.
* fetch: fix ebuild --skip-manifest behaviorZac Medico2011-07-131-0/+2
| | | | | This should fix "Insufficient data for checksum verification" errors triggered by ebuild --skip-manifest.
* BUILD_TIME: use string format op for time.time()v2.2.0_alpha44Zac Medico2011-07-121-1/+1
|
* Use portage.subprocess_getstatusoutput() more.Zac Medico2011-07-125-26/+10
|
* Avoid baseline subprocess import under python2.Zac Medico2011-07-121-2/+4
|
* emergelog: use string format op for time.time()Zac Medico2011-07-121-4/+7
|
* emergelog: remove unneeded seek for append modeZac Medico2011-07-121-3/+0
|
* Update timestamps in headers of modified files.Zac Medico2011-07-121-1/+1
|
* Use explicit 'mode' keyword arg with io.open().Zac Medico2011-07-121-3/+3
|
* Use explicit 'mode' keyword arg with io.open().Zac Medico2011-07-121-2/+2
|
* resume_depgraph: be careful with parent_node typeZac Medico2011-07-121-2/+3
|
* unmerge: reject USE conditionals in argumentsZac Medico2011-07-121-2/+12
|
* Remove unneeded _unicode_decode for io.StringIO.Zac Medico2011-07-125-22/+8
| | | | | | | Since StringIO.StringIO fallback was removed in commit 5df96179611ce0e98727945b1800b43daccedfc2, we can rely on io.StringIO.getoutput() to return unicode, so there's no need to call _unicode_decode on the result.
* Remove python-2.6 StringIO.StringIO fallback.Zac Medico2011-07-1211-33/+25
| | | | | | | | Since the io module in python-2.6 was broken when threading was disabled, we needed to fall back from io.StringIO to StringIO.StringIO in this case (typically just for Gentoo's stage1 and stage2 tarballs). Now that python-2.7 is stable in stages and we rely on io.open() being available, we can also rely on io.StringIO being available.
* autounmask-write: create /etc/portage if neededZac Medico2011-07-111-1/+3
|
* elog/mod_save: fix permissions for logrotateZac Medico2011-07-113-4/+13
| | | | | These permissions should be compatible with our default logrotate config as discussed in bug 374287.
* 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.