summaryrefslogtreecommitdiffstats
path: root/pym/portage/dbapi/vartree.py
Commit message (Collapse)AuthorAgeFilesLines
* _new_backup_path: fix TypeError, bug #453892Zac Medico2013-01-241-1/+1
|
* Add workaround for Python 2.6.4 issue 4978Zac Medico2013-01-181-1/+2
| | | | | Avoid "TypeError: keywords must be strings" issue triggered by unicode_literals: http://bugs.python.org/issue4978
* Use unicode_literals more.Zac Medico2013-01-181-9/+11
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* Use 'with file' more.Zac Medico2013-01-171-61/+46
| | | | This helps to minimize ResourceWarning triggered by ^C with python3.
* Use EventLoop, no SchedulerInterface if possible.Zac Medico2013-01-101-2/+2
|
* Handle os.write() return code with loop.Zac Medico2013-01-051-1/+3
|
* portage._internal_caller: use global_event_loopZac Medico2013-01-031-5/+10
| | | | | It's more efficient to use global_event_loop than a local EventLoop instance, so do that when we know it's safe.
* Use ctypes in subprocess for bug #448858.Zac Medico2012-12-301-33/+14
| | | | | | Isolate ctypes usage in a subprocess, in order to avoid potential problems with stale cached libraries as described in bug #448858, comment #14 (also see http://bugs.python.org/issue14597).
* merge-sync: handle PyPy syncfs fail, bug #446610Zac Medico2012-12-261-9/+14
|
* vardbapi: tweak deprecated constructor paramZac Medico2012-12-241-4/+5
|
* dblink._elog_process: obey phasefilter argZac Medico2012-12-101-1/+4
| | | | | | This would make a difference when collecting messages for prerm/postrm when uninstalling the previous instance of a package that's been updated.
* Fix PORTAGE_BUILDIR_LOCKED typo.Arfrever Frehtes Taifersar Arahesis2012-11-161-2/+2
|
* vardbapi.move_ent: rm wrong fixdbentries callZac Medico2012-11-141-2/+1
| | | | | | The parent argument was wrong, as reported in bug #367215 comment #22, and this call was uneeded anyway because dbapi.update_ents handles it with update_dbentries.
* update_dbentry: add parent arg for bug #367215Zac Medico2012-11-131-1/+1
|
* dblink.mergeme(): use stack instead of recursionZac Medico2012-10-301-11/+11
| | | | | Maybe this helps reduce memory consumption when merging packages with lots of subdirectories like gentoo-sources (bug #320859).
* merge-sync: handle unmerge corner casesZac Medico2012-10-251-4/+13
| | | | | In dblink_merged_path we need to distinguish between existing and non-existing, since we need an existing path of syncfs.
* merge-sync: syncfs on parent of dir for unmergeZac Medico2012-10-251-7/+34
| | | | | | Note that we use a realpath and a regular stat here, since we want to follow any symlinks back to the real device where the real parent directory resides.
* MergeProcess: cache syncfs libc library lookupZac Medico2012-10-251-14/+14
|
* Add FEATURES=merge-sync, for bug #439584.Zac Medico2012-10-251-1/+40
|
* dblink: add hooks to sync disk for bug #439584Zac Medico2012-10-251-1/+58
|
* Handle InvalidData from _pkg_str.Zac Medico2012-10-171-1/+1
|
* vartree.py: account for EAPI 5 sub-slot in SLOTZac Medico2012-10-171-16/+18
|
* Show slot + repo for colliding packages.Zac Medico2012-10-071-3/+15
| | | | See bug #437516 for example.
* Substitute SchedulerInterface for PollScheduler.Zac Medico2012-10-071-3/+3
| | | | | | SchedulerInterface suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* Substitute EventLoop for PollScheduler.Zac Medico2012-10-051-1/+2
| | | | | EventLoop suffices for all of these cases. EventLoop(main=False) is used for thread safety where API consumers may be using threads.
* Handle KeyError when loading pickles.Zac Medico2012-09-281-1/+3
| | | | See http://forums.gentoo.org/viewtopic-t-938022.html for example.
* Add experimental EAPI 5-hdepend support.Ambroz Bizjak2012-09-241-1/+1
|
* Add preserve-libs for stable branch (not default)Zac Medico2012-09-211-10/+3
| | | | | | | | | EAPI 5 supports automatic rebuilds via the slot-operator and sub-slots, which makes preserve-libs much more user-friendly, since it makes @preserved-rebuild unnecessary (also see bug #364425 for explanation of @preserved-rebuild shortcomings). Therefore, enable preserve-libs for the stable branch, but not by default. After EAPI 5 is widely adopted, we can consider enabling preserve-libs by default.
* vardbapi: optimize pickle load for Python >=3.2Zac Medico2012-08-021-2/+3
|
* Use nanosecond precision in cache for category directory mtimesArfrever Frehtes Taifersar Arahesis2012-08-011-2/+8
| | | | and cache for cp_list results when using Python >=3.3.
* Use nanosecond precision in portage.util.movefile.movefile().Arfrever Frehtes Taifersar Arahesis2012-08-011-5/+15
|
* portage.update: use isvalidatom for EAPI checkZac Medico2012-07-171-4/+7
|
* move: respect EAPI wrt dots_in_PN, bug #426476Zac Medico2012-07-171-1/+4
|
* Propagate EAPI for update_dbentry (bug #426476).Zac Medico2012-07-171-1/+5
|
* vardbapi: use float mtime for aux cachev2.2.0_alpha117Zac Medico2012-07-121-3/+9
|
* vartree.py: fix stutter in commentv2.2.0_alpha116Zac Medico2012-07-041-1/+1
|
* Fix unmerge-backup/preserve-libs interaction.Zac Medico2012-07-021-3/+6
|
* _pre_unmerge_backup: show failure messagev2.2.0_alpha115Zac Medico2012-07-021-0/+2
|
* _quickpkg_dblink: set PYTHONPATH for quickpkgZac Medico2012-07-011-0/+6
|
* Fix bugs in binarytree.invalids usage.Zac Medico2012-07-011-1/+1
|
* Support FEATURES={downgrade,unmerge}-backupZac Medico2012-07-011-9/+84
| | | | This will fix bug #156282 and bug #424275.
* protected_symlinks: suggest course of actionZac Medico2012-06-241-1/+5
| | | | See discussion in bug #423127.
* protected_symlinks: change eerror to elogZac Medico2012-06-241-1/+1
| | | | | Since bug #421165, this code will trigger more often (see bug #423127), and eerror is too harsh because the symlinks will never be orphaned.
* Skip unmerge of libdir symlinks for bug #423127.v2.2.0_alpha112Zac Medico2012-06-231-0/+6
|
* treewalk: fix USE=multislot breakageZac Medico2012-06-221-5/+4
| | | | It broke in commit e4ba8f36e6a4624f4fec61c7ce8bed0e3bd2fa01.
* Add UNINSTALL_IGNORE variable for bug #421659.Zac Medico2012-06-221-13/+15
| | | | | | | | | UNINSTALL_IGNORE = [space delimited list of fnmatch patterns] This variable prevents uninstallation of files that match specific fnmatch(3) patterns. In order to ignore file collisions with these files at install time, the same patterns can be added to the COLLISION_IGNORE variable.
* Add experimental EAPI 4-slot-abi support.Zac Medico2012-06-221-0/+5
| | | | Refer to 4-slot-abi.docbook for a full description.
* Unmerge symlink listed as dir for bug #421165.Zac Medico2012-06-151-4/+5
|
* Add a _get_slot_re() function.Zac Medico2012-06-101-2/+4
|
* merge: fix abs symlink adjustment, bug #416431László Szalma2012-05-171-1/+1
|