summaryrefslogtreecommitdiffstats
path: root/pym/portage/update.py
Commit message (Collapse)AuthorAgeFilesLines
* fixdbentries: add deprecation warningZac Medico2012-11-151-0/+5
| | | | It's unused since commit c974a023882485b8eeae35bac35c1f00d1a0725b.
* update_dbentry: avoid self-blocker, bug #367215Zac Medico2012-11-141-1/+11
|
* update_dbentry: add parent arg for bug #367215Zac Medico2012-11-131-5/+10
|
* update.py: cleanup importsZac Medico2012-09-191-5/+2
|
* update_dbentry: fix "move" to translate atom[use]Zac Medico2012-09-191-12/+19
|
* update_dbentry: improve slotmove supportZac Medico2012-09-191-7/+39
| | | | | This could be especially useful for "built" slot operator deps, in order to avoid having a slotmove trigger unnecessary rebuilds.
* slotmove: update comment about EAPI 4-slot-abiv2.2.0_alpha120Zac Medico2012-07-181-3/+1
|
* portage.update: use isvalidatom for EAPI checkZac Medico2012-07-171-6/+7
|
* move: respect EAPI wrt dots_in_PN, bug #426476Zac Medico2012-07-171-4/+10
|
* Propagate EAPI for update_dbentry (bug #426476).Zac Medico2012-07-171-4/+4
|
* slotmove: fix handling for EAPI 4-slot-abiv2.2.0_alpha118Zac Medico2012-07-131-1/+22
| | | | | | | | This is just a really minimal fix, in order to prevent slotmove from behaving incorrectly with packages that use EAPI 4-slot-abi. Any slotmove commands that try so specify a sub-slot are treated as invalid for now, since that will required additional EAPI conditional logic, as reported in bug #426476.
* portage.update.fixdbentries(): Fix ResourceWarnings with Python 3.2.Arfrever Frehtes Taifersar Arahesis2012-02-161-2/+3
|
* parse_updates: filter invalid for bug #388187Zac Medico2011-10-231-0/+5
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-281-2/+7
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-241-3/+4
|
* Migrate from codecs.open() to io.open().Zac Medico2011-07-101-6/+6
| | | | | | | | | | | | | | | | | 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.
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-151-2/+2
|
* grab_updates: return all after first modifiedZac Medico2011-01-251-3/+11
| | | | | | | This ensures that all relevant updates are returned for cases in which the destination package of an earlier move corresponds to the source package of a move that comes somewhere later in the entire sequence of files.
* In update_config_files(), add a comment line showing a package moveZac Medico2010-09-091-1/+14
| | | | | that has been applied. This is intended to reduce the risk given that /etc/portage is in CONFIG_PROTECT_MASK, as discussed in bug
* Make recursive grablines() ignore the same directories asZac Medico2010-08-231-2/+3
| | | | portage.listdir(), and do the same for update_config_files().
* Bug #309907 - Update more config files for package moves:Zac Medico2010-08-221-2/+6
| | | | package.accept_keywords, package.env, and package.properties.
* Make update_config_files() take a dict of {repo_name: list} since it's moreZac Medico2010-08-011-20/+33
| | | | | | efficient this way, and this function can't be called separately for each repo if /etc/portage is under CONFIG_PROTECT (because it would produce separate updated files for each repo).
* Support repository-wide updates.Michał Górny2010-07-271-6/+9
| | | | | | | Support reading repository-wide update files. Apply them as long as the 'repository' for vardb entry matches the repository update is originating from. For world and configuration files, use the best vardb match.
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Bug #309907 - Fix update_config_files() to handle package.license.Zac Medico2010-03-171-1/+1
| | | | svn path=/main/trunk/; revision=15832
* Add missing stat import.Zac Medico2009-12-211-0/+1
| | | | svn path=/main/trunk/; revision=15127
* When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of theZac Medico2009-12-211-1/+1
| | | | | | float st_mtime in order to avoid rounding *up* in some rare cases. svn path=/main/trunk/; revision=15125
* Fix possibly unsafe modification of list during iteration insideZac Medico2009-12-071-1/+1
| | | | | | update_config_files(). svn path=/main/trunk/; revision=14951
* Bug #295805 - Fix ValueError with python3 inside update_config_files().Zac Medico2009-12-051-4/+9
| | | | svn path=/main/trunk/; revision=14929
* Bug #295351 - Make update_dbentries() return unicode if it's given unicode,Zac Medico2009-12-021-3/+7
| | | | | | and bytes if it's given bytes. svn path=/main/trunk/; revision=14921
* Remove unnecessary dict.has_key() call (fix for python 3).Zac Medico2009-09-251-2/+0
| | | | svn path=/main/trunk/; revision=14418
* Define long as int when Python 3 is used.Arfrever Frehtes Taifersar Arahesis2009-09-211-0/+3
| | | | svn path=/main/trunk/; revision=14343
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-3/+3
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-2/+2
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Use isjustname() where appropriate.Zac Medico2009-09-121-1/+2
| | | | svn path=/main/trunk/; revision=14236
* Add missing InvalidAtom import.Zac Medico2009-09-121-1/+1
| | | | svn path=/main/trunk/; revision=14231
* Make parse_updates() and update_dbentry() use Atom instances.Zac Medico2009-09-121-9/+27
| | | | svn path=/main/trunk/; revision=14230
* Bug #282505 - Fix unicode handling for package moves in binary packages.v2.2_rc40Zac Medico2009-08-241-3/+9
| | | | svn path=/main/trunk/; revision=14134
* Replace _content_encoding, _fs_encoding, and _merge_encoding with directZac Medico2009-08-211-10/+10
| | | | | | usage of _encodings. svn path=/main/trunk/; revision=14113
* Use _content_encoding and _fs_encoding for unicode encoding/decoding.Zac Medico2009-08-171-18/+35
| | | | svn path=/main/trunk/; revision=14072
* Prepare 308 messages to localization.Arfrever Frehtes Taifersar Arahesis2009-08-151-7/+8
| | | | svn path=/main/trunk/; revision=14067
* Do not pass unicode strings into os.walk calls, since it can causeZac Medico2009-08-061-0/+6
| | | | | | internal os.path.join calls to raise UnicodeDecodeError. svn path=/main/trunk/; revision=13926
* Remove leading slash from appropriate paths inside portage.const, so thatZac Medico2009-07-121-2/+1
| | | | | | | lstrip(os.sep) is not needed for os.path.join() calls. Thanks to Fabian Groffen <grobian@g.o> for this patch. svn path=/main/trunk/; revision=13821
* Fix headers that contain $Header instead of $Id.Zac Medico2009-02-231-1/+1
| | | | svn path=/main/trunk/; revision=12701
* Use lazyimport to avoid importing the dep, output, update, and versionsZac Medico2009-02-221-3/+2
| | | | | | modules when portage is initially imported. svn path=/main/trunk/; revision=12681
* Use lazyimport to avoid importing the checksum, locks, and util modulesZac Medico2009-02-221-3/+7
| | | | | | when portage is initially imported. svn path=/main/trunk/; revision=12680
* Move the world file update code out of update_config_files() since it shouldZac Medico2008-09-131-13/+0
| | | | | | not be relative to PORTAGE_CONFIGROOT. Thanks to grobian for reporting. svn path=/main/trunk/; revision=11508
* Fix update_config_files() so that it uses update_dbentry()Zac Medico2007-11-031-31/+30
| | | | | | | to handle update commands since that already supports slotmove commands for SLOT atoms. svn path=/main/trunk/; revision=8397
* TODO: Make update_config_files() handle slotmove commands for SLOT atoms.Zac Medico2007-11-031-0/+1
| | | | svn path=/main/trunk/; revision=8387
* Fix update_dbentry() to process version components properly before passing ↵Zac Medico2007-08-221-2/+7
| | | | | | them into ververify(). svn path=/main/trunk/; revision=7665