summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
...
* emerge: add simple unit testsZac Medico2011-08-285-2/+148
| | | | | | | 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.
* Send "Recording in world" msg to stdout.Zac Medico2011-08-281-1/+2
|
* ResolverPlayground: fix to make emerge happyZac Medico2011-08-281-1/+15
|
* env_update: add minimal EPREFIX supportZac Medico2011-08-282-10/+16
| | | | | | | 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.
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-281-2/+7
|
* test_poll: fix "ResourceWarning: unclosed file"Zac Medico2011-08-281-1/+9
|
* Sort test cases, for predictable order.Zac Medico2011-08-281-0/+2
|
* spawnebuild: skip previously executed phasesZac Medico2011-08-281-0/+11
| | | | | | | | | | This simply checks of $PORTAGE_BUILDDIR/.${EBUILD_PHASE%e}ed and skips the phase like ebuild.sh would. It preserves a special case for the install phase with FEATURES=noauto, so that dyn_install in ebuild.sh continues to work the same for this case.. Also, note that commit ae9b6cb513c7b29376caecf3b4e52aac452e2b93 preserves the automatic "recreating WORKDIR" behavior that used to be implemented in dyn_unpack.
* doebuild: avoid redundant distfiles checksZac Medico2011-08-281-2/+68
| | | | | | | | | When the unpack phase is already marked as complete, it's wasteful to check distfiles digests. In order to avoid this, we have to migrate the distfiles/workdir timestamp comparisons from ebuild.sh to doebuild.py, so that doebuild always knows when unpack will be triggered. This also allows us to eliminate code in dyn_unpack that duplicated dyn_clean, actually call dyn_clean instead.
* Fix possible NameError in finally block.Zac Medico2011-08-281-1/+3
|
* Fix "ResourceWarning: unclosed file" with Python 3.2.Arfrever Frehtes Taifersar Arahesis2011-08-281-2/+5
|
* Fix "ResourceWarning: unclosed file" with Python 3.2.Arfrever Frehtes Taifersar Arahesis2011-08-271-1/+1
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-263-6/+14
|
* Update --rebuild-if-* flags to rebuild when build dependencies are changed.David James2011-08-263-129/+104
| | | | | | | | | | | | | | Right now, the --rebuild-if-* flags only rebuild packages that are used at both run-time and build-time. This doesn't help for packages that are used only at build-time (for example, static libaries). Rebuilding packages whenever a build-time dependency is changed is easier to understand and explain, and it handles all cases correctly. BUG=chromium-os:15517 TEST=Run emerge test suite. Change-Id: Iae8dab24e8acb6625bc1a0ce41862e90b232eb84
* Fix EPREFIX/EROOT typo in repoman test.Zac Medico2011-08-261-1/+1
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-263-2/+6
|
* Add __test__ for repoman tests.Zac Medico2011-08-261-0/+0
|
* repoman: add a simple unit testZac Medico2011-08-253-0/+174
|
* Add skipped test support (for python 2.6 compat)Zac Medico2011-08-251-1/+17
| | | | | | Python supports skipped tests since 2.7, but we'll implement support ourselves for python 2.6 compatibility. This is a simple extension of the todo support that we have already implemented.
* testLazyImport: fix PYTHONPATH settingZac Medico2011-08-251-1/+1
|
* Enable -Wd for tests, so DeprecationWarning worksZac Medico2011-08-251-1/+1
| | | | | DeprecationWarning is suppressed by default since Python 2.7, so it's a good idea to explicitly enable it for tests.
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-251-0/+13
|
* TestCase: remove python 2.4 compat constructorZac Medico2011-08-251-9/+5
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-256-5/+26
|
* Improve a comment.Arfrever Frehtes Taifersar Arahesis2011-08-251-1/+1
|
* Add some comments, which will allow to easier find code, which should beArfrever Frehtes Taifersar Arahesis2011-08-256-0/+7
| | | | removed when support for older versions of Python is removed.
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-245-13/+34
|
* python3.2 fixes: use array.tobytes()Zac Medico2011-08-245-11/+27
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-246-17/+38
|
* ElementTree: use iter if available (bug #380565)Zac Medico2011-08-241-2/+11
|
* SafeConfigParser: renamed to ConfigParser in 3.2Zac Medico2011-08-242-3/+13
|
* Improve the invalid profile msg (bug 379327).Mark Wagner2011-08-151-4/+4
|
* emerge --search: account for USE in fetch sizeZac Medico2011-08-141-7/+19
|
* config: blacklist vars loaded from profile.envZac Medico2011-08-131-0/+11
|
* config: blacklist GREP_OPTIONS variableZac Medico2011-08-131-1/+1
| | | | | This variable could cause interference with the ebuild environment and portage shell code, like in bug 370085.
* Fix log uid for logrotate-3.8 compat (bug 378451)Zac Medico2011-08-123-5/+55
| | | | | | | | | | | If PORT_LOGDIR is writable by the portage group but its uid is not portage_uid, then set the uid to portage_uid if we have privileges to do so, and also copy the uid to the logfile. This fixes logrotate chown failures during the compression phase, when it attempts to copy the uid from the logfile to a temp file. With the "su portage portage" directive and logrotate-3.8.0, logrotate's chown call during the compression phase will only succeed if the log file's uid is portage_uid.
* resume_depgraph: prune all indirect unsatisfiedZac Medico2011-08-101-6/+6
| | | | This should fix some cases of bug 378187.
* repoman: check more helper calls for $D, $ED...Zac Medico2011-08-081-1/+1
| | | | | | This adds docinto, docompress, fowners and fperms to the variable.usedwithhelpers check. Notably absent is dosed since that supports mixed input. This will fix bug #377303.
* Package: remove unused profile.system mask typeZac Medico2011-08-081-1/+0
|
* Remove "profile" mask support as per PMS 5.2.7.Zac Medico2011-08-084-14/+3
| | | | | | | | Since this is considered a "legacy" feature by PMS 5.2.7, there shouldn't be any need to support it anymore. Profiles can use package.mask to get similar results, and package.mask additionally allows for comments which are conveniently displayed by emerge. This will fix bug #377907.
* _check_temp_dir: check for 'portage' symlinkZac Medico2011-08-081-3/+24
| | | | This will fix bug #378403.
* fetch: handle non-essential statvfs failureZac Medico2011-08-061-1/+10
|
* unmerge: remove more info dir files for #323213Zac Medico2011-08-061-1/+5
| | | | | Treat any directory named "info" as a candidate here, since it might have been in INFOPATH previously even though it may not be there now.
* unmerge: remove generated info "dir" filesZac Medico2011-08-041-0/+40
| | | | | | These files are generated by emerge, so we need to remove them when they are the only thing left in the directory. This will fix bug #323213.
* action_info: don't mix print with writemsg_stdoutZac Medico2011-08-042-47/+46
| | | | | This should prevent strange output buffering/order issues reported when piping output to head.
* Scheduler: fix parallel-fetch order with --jobs=1Zac Medico2011-08-021-0/+7
| | | | | | This avoids a case where the first prefetcher is discarded, causing the second prefetcher to occupy the fetch queue before the first fetcher has an opportunity to execute.
* unmerge: display preserved syms in ascending ordZac Medico2011-08-021-1/+1
|
* depgraph: fix duplicate zero pkg count displayZac Medico2011-08-011-1/+1
|
* unmerge: unmerge symlinks broken by rmdirZac Medico2011-08-011-7/+29
| | | | | This prevents some more false alarms from commit 4bb08136f073024c5d31dceb1618b6f4e7246369.
* post_emerge: just return instead of sys.exit()Zac Medico2011-08-011-7/+1
|