summaryrefslogtreecommitdiffstats
path: root/pym
Commit message (Collapse)AuthorAgeFilesLines
* autounmask-write: force configpro if non-existentZac Medico2011-06-022-4/+12
| | | | | | We want to force new_protect_filename to ensure that the user will see all our changes via etc-update, even if file_to_write_to doesn't exist yet.
* add_pkg_dep_string: fix reversed inst_pkgs orderZac Medico2011-06-021-3/+6
| | | | | | This code was intended to iterate over packages in descending order, but match_pkgs() returns them in ascending order, so we need to reverse it.
* add_pkg_dep_string: remove unused root_slot varZac Medico2011-06-021-1/+0
|
* Use bool(digraph) instead of empty()/is_empty().Zac Medico2011-06-025-12/+12
|
* dblink.unmerge: init log_path earlier, don't popZac Medico2011-06-021-4/+1
| | | | | There's no need to pop PORTAGE_LOG_FILE here, since PORTAGE_BACKGROUND=subprocess disables logging when necessary.
* repository/config: PORTDIR/overlay priority tweakZac Medico2011-06-022-12/+20
| | | | | | This ensures compatibility with previous portage versions for cases in which the user has added PORTDIR to PORTDIR_OVERLAY as a means to modify its priority relative to overlays when selecting ebuilds.
* repoman: disallow EMERGE_FROM in EAPI 4Zac Medico2011-05-311-2/+3
| | | | | | We already have the Eapi4GoneVars check for AA and KV which were removed in EAPI 4, so we can re-use it to disallow EMERGE_FROM. This will fix bug #368865.
* dep_zapdeps: use digraph for preference selectionZac Medico2011-05-302-2/+12
| | | | | | | | | | This is required in order for dep_zapdeps to work as intended for solving cases of bug #264434 in which there is an installed package that may need to be uninstalled in order to resolve blockers. It fixes a failure to resolve blockers when attempting to replace media-video/ffmpeg with media-video/libav (symptom is similar to bug #339164, but with new-style virtual instead of old-style PROVIDE virtual).
* test_merge_order: add USE deps to bug 264434 testZac Medico2011-05-301-4/+18
|
* test_merge_order: test bug #264434 with virtualZac Medico2011-05-301-1/+21
|
* backtrack_depgraph: display_problems for each runZac Medico2011-05-271-2/+13
|
* depclean: warn for each unmatched argumentZac Medico2011-05-271-1/+4
| | | | This output is similar to that produced by unmerge().
* _LockProcess: fix _poll returncodev2.2.0_alpha37Zac Medico2011-05-261-1/+1
| | | | | We don't want to return the returncode directly from the subprocess. Return self.returncode instead.
* MergeProcess: populate vardbapi cache for new pkgZac Medico2011-05-261-0/+9
|
* counter_tick_core: flush the cache (periodically)Zac Medico2011-05-261-0/+6
| | | | | | Since we hold a lock, this is a good opportunity to flush the cache. Note that this will only flush the cache periodically in the main process when _aux_cache_threshold is exceeded.
* autounmask_broke_use_dep: flag masked pkgs tooZac Medico2011-05-261-2/+2
|
* _LockProcess: remove redundant scheduler attribZac Medico2011-05-261-1/+1
|
* unmerge: remove redundant builddir_locked varZac Medico2011-05-261-7/+4
|
* AsynchronousLock: check type in _poll and _cancelZac Medico2011-05-261-3/+3
|
* unmerge: pass through writemsg_level paramZac Medico2011-05-261-1/+1
|
* discardBlocker: fix bug in slot match codeZac Medico2011-05-261-2/+3
|
* discardBlocker: fix cpv match so it worksZac Medico2011-05-261-2/+4
|
* depgraph: always check for autounmask breakageZac Medico2011-05-251-9/+10
| | | | | The 2.1.9 branch already does the same thing since commit 65736474c0d70cb10ff1290b3787b61d8a502aed.
* dblink.unmerge: always initialize myebuildpathZac Medico2011-05-251-10/+5
| | | | | This is required for the doebuild_environment() call. Also, set builddir_locked = True when appropriate.
* counter_tick: respect incrementing param alwaysZac Medico2011-05-251-12/+16
| | | | | | Every package install must have a unique counter, since a slotmove update can move two packages into the same SLOT and in that case it's important that both packages have different COUNTER metadata.
* FakeVartree: use live meta if installed EAPI okZac Medico2011-05-251-2/+10
| | | | This will fix bug #368725.
* unmerge: fix logging for unsupported EAPIZac Medico2011-05-251-26/+29
|
* rebuilt-binaries: prefer newer unbuiltZac Medico2011-05-251-1/+7
|
* FakeVartree: tweak _aux_get_wrapper repo handlingv2.2.0_alpha36Zac Medico2011-05-241-2/+1
|
* FakeVartree: tweak _aux_get_wrapper EAPI handlingZac Medico2011-05-241-1/+4
|
* writedict: use write_atomic for exceptionsZac Medico2011-05-242-17/+9
| | | | Also, fix calling code to handle InvalidLocation exceptions.
* treewalk: reset cloned config instancesZac Medico2011-05-241-0/+1
|
* dblink: use config._init_dirs() when necessaryZac Medico2011-05-241-3/+7
|
* writedict: raise any exceptionsZac Medico2011-05-241-2/+1
| | | | | We don't have any code that checks the writedict return value, so we'd better raise an exception if it fails.
* atomic_ofstream: suppress redundant open errorZac Medico2011-05-241-3/+3
|
* vardbapi: use config._init_dirs() when necessaryZac Medico2011-05-241-6/+11
|
* cleanrm: handle UnsupportedAPIExceptionZac Medico2011-05-241-2/+5
|
* FakeVartree: preserve EAPI of installed packageZac Medico2011-05-241-1/+2
| | | | | | If the corresponding unbuilt ebuild has a different EAPI than the installed instance, then we want to preserve the EAPI meatadata from the installed instance.
* Fix a typo in last commit's debug message.Zac Medico2011-05-241-1/+1
|
* depgraph: detect deps broken by autounmaskZac Medico2011-05-241-1/+37
| | | | This will fix bug #368429.
* PackageUninstall: return early if pkg is missingZac Medico2011-05-241-1/+8
|
* PackageUninstall: remove extra cat/pf var initZac Medico2011-05-241-2/+2
| | | | Also, add to comments about ebuild-locks.
* test_merge_order: test asap PDEPEND (bug #180045)Zac Medico2011-05-242-0/+34
|
* treewalk: fix PORTAGE_BUILDIR_LOCKED stateZac Medico2011-05-241-1/+3
| | | | | This fixes breakage from commit f0f1bbe8fa9d3f698cbe529d2a11eec1ce437119.
* PackageUninstall: log more outputZac Medico2011-05-231-9/+12
|
* PackageUninstall: make async with MergeProcessZac Medico2011-05-233-30/+93
| | | | | | | | This fixes another ebuild-locks issue like the one fixed in commit a81460175a441897282b0540cefff8060f2b92dc, but this time we use a subprocess to ensure that the ebuild-locks for pkg_prerm and pkg_postrm do not interfere with pkg_setup ebuild-locks held by the main process.
* doebuild_environment: move EAPI code laterZac Medico2011-05-231-55/+66
| | | | | | | | All EAPI dependent code comes last, so that essential variables like PORTAGE_BUILDDIR are still initialized even in cases when UnsupportedAPIException needs to be raised, which can be useful when uninstalling a package that has corrupt EAPI metadata.
* MergeProcess: remove unnecessary dblink attributeZac Medico2011-05-233-5/+4
|
* PackageUninstall: use _unmerge_display()Zac Medico2011-05-231-17/+34
| | | | This is preparation for asynchronous support.
* unmerge: split out _unmerge_display() functionZac Medico2011-05-231-20/+44
| | | | | | | This will be useful for adding asynchronous support to the PackageUninstall class, since it will be able to call _unmerge_display() for the display portion, and then do the actual unmerge asynchronously.