summaryrefslogtreecommitdiffstats
path: root/bin/emaint
Commit message (Collapse)AuthorAgeFilesLines
* Unconditionally insert our pym dir in sys.path.Zac Medico2012-09-021-7/+4
| | | | | This is especially necessary when running in prefix mode, since sys.path may contain the path for a different version of portage.
* emaint: split into separate modulesBrian Dolbec2012-07-221-631/+28
|
* Propagate EAPI for update_dbentry (bug #426476).Zac Medico2012-07-171-3/+4
|
* migrate emaint to use the new title and label features of the progressbar.Brian Dolbec2012-07-091-4/+2
|
* emaint: remove obsolete world category checkZac Medico2012-07-031-7/+2
| | | | | | The reason for this check, as discussed in bug #166785, is no longer relevant since emerge does not suggest to run `emaint --check world` in this case anymore.
* Fix missed ROOT -> EROOT changes.Zac Medico2011-10-271-1/+1
| | | | These go along with commit a715b65f7bd36409c1283e6911265d1f4405ab7a.
* Use EROOT instead of ROOT for keys everywhere.Zac Medico2011-10-251-10/+10
| | | | | | | | | | It makes more sense to use EROOT instead of ROOT for keys in mappings like portage.db, since it allows for multiple prefixes to exist simultaneously within the same map without having a key collision. This affects all portageq commands which take a <root> parameter, since that parameter now corresponds to EROOT instead of ROOT. None of this makes any difference for non-prefix users, since EROOT and ROOT are identical when EPREFIX is empty.
* emaint binhost: add method for SIZE/MTIME checksZac Medico2011-06-181-19/+38
|
* emaint binhost: check SIZE and MTIMEZac Medico2011-06-181-1/+21
|
* Remove redundant initial os.sep argument to os.path.join() callsZac Medico2010-09-051-2/+2
| | | | involving EROOT.
* use EROOT with WORLD_FILEFabian Groffen2010-09-041-1/+1
|
* use EROOT with VDB_PATHFabian Groffen2010-09-041-2/+2
|
* Rename the portage.sets module to portage._sets since it will be usefulZac Medico2010-08-301-2/+2
| | | | | in the upcoming 2.1.9 branch which will not have sets support but will still have the code in private and disabled form.
* Tweak global updates handling so that updates from $PORTDIR are appliedZac Medico2010-07-271-10/+40
| | | | | | | | | for all of the following cases: * package is missing repository metadata * package has repository metadata, but the source repository does not have a profiles/updates/ directory * package has repository metadata, but the source repository is not currently accessible via PORTDIR_OVERLAY
* Make dbapi.update_ents() take a dict of {repo_name: list}, since it'sZac Medico2010-07-271-2/+1
| | | | most efficient to process all repos at once.
* Fallback to updates from PORTDIR if repository has no 'updates' dir.Michał Górny2010-07-271-0/+3
| | | | | | As a backwards-compatibility measure, if a particular repository doesn't come with an 'updates' directory, fallback to updates from dbapi.porttree_root.
* Add repository-wide updates support to emaint.Michał Górny2010-07-271-40/+55
|
* Skip atom validation in WorldHandler since WorldSelectedSet handles thisZac Medico2010-02-091-3/+2
| | | | | | already, and use Atom.cp instead of dep_getkey(). svn path=/main/trunk/; revision=15327
* Bug #300388 - Fix terminal handling code to so term codes aren't sent whenZac Medico2010-01-111-1/+1
| | | | | | TERM=dumb. svn path=/main/trunk/; revision=15191
* Fix WorldHandler to use the "selected" set.Zac Medico2009-10-171-2/+2
| | | | svn path=/main/trunk/; revision=14620
* Use list comprehensions instead of filter() or map() in some places for ↵Arfrever Frehtes Taifersar Arahesis2009-09-251-3/+3
| | | | | | compatibility with Python 3. svn path=/main/trunk/; revision=14421
* Replace doct.keys() usage with __iter__(), since it behaves identically inZac Medico2009-09-221-1/+1
| | | | | | both python 2.x and 3.x. svn path=/main/trunk/; revision=14379
* Use dict.(keys|values|items)() instead of ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+2
| | | | | | | | dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3. (2to3-3.1 -f dict -nw ${FILES}) svn path=/main/trunk/; revision=14327
* Use filter() and zip() instead of itertools.ifilter() and itertools.izip() ↵Arfrever Frehtes Taifersar Arahesis2009-09-211-2/+1
| | | | | | | | for compatibility with Python 3. (2to3-3.1 -f itertools -f itertools_imports -nw ${FILES}) svn path=/main/trunk/; revision=14314
* Update syntax of numbers for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f numliterals -nw ${FILES}) svn path=/main/trunk/; revision=14292
* Support print() function with Python 2 in some files.Arfrever Frehtes Taifersar Arahesis2009-09-201-0/+3
| | | | svn path=/main/trunk/; revision=14291
* Update syntax of calls to print() for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-7/+7
| | | | | | (2to3-3.1 -f print -nw ${FILES}) svn path=/main/trunk/; revision=14290
* Update syntax of 'except' statements for compatibility with Python 3.Arfrever Frehtes Taifersar Arahesis2009-09-201-1/+1
| | | | | | (2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
* Update imports to import portage.os (with unicode wrappers), and useZac Medico2009-08-111-2/+1
| | | | | | _unicode_encode() and _unicode_decode() where appropriate. svn path=/main/trunk/; revision=13993
* Bug #280259 - Fix emaint to call binarytree._load_pkgindex() for unicodeZac Medico2009-08-041-13/+3
| | | | | | handling. svn path=/main/trunk/; revision=13891
* Fix typo in --help.Zac Medico2008-11-241-1/+1
| | | | svn path=/main/trunk/; revision=12072
* Add docs for all of the supported commands.Zac Medico2008-11-231-4/+26
| | | | svn path=/main/trunk/; revision=12047
* Optimize `emaint` --fix binhost so that it the Packages file isn't re-readZac Medico2008-08-011-15/+45
| | | | | | | and re-written for each package that's updated. Instead, hold a lock for the whole time the command is running and just update it once. svn path=/main/trunk/; revision=11307
* Fix an UnboundLocalError for 'pkgindex'.Zac Medico2008-03-151-2/+2
| | | | svn path=/main/trunk/; revision=9467
* Convert PackageIndex.packages from a dict to a list so that in the futureZac Medico2008-03-071-6/+14
| | | | | | it will be possible to support multiple packages with the same cpv. svn path=/main/trunk/; revision=9452
* style fixes (imports), add support for --version (bug 138159)Alec Warner2008-01-131-4/+8
| | | | svn path=/main/trunk/; revision=9200
* Fix setconfig.getSets() api breakage.Zac Medico2007-12-171-1/+1
| | | | svn path=/main/trunk/; revision=8937
* Fix setconfig loader to use config files instead of hardcoded fallbacksMarius Mauch2007-12-041-2/+2
| | | | svn path=/main/trunk/; revision=8839
* Bug #197797 - Set umask to 022 so that created files (such as theZac Medico2007-11-121-0/+4
| | | | | | world file) have sane permissions. svn path=/main/trunk/; revision=8491
* Move glsa-check from gentoolkit into portage so the gentoolkit version can ↵Marius Mauch2007-11-091-2/+1
| | | | | | be removed after 2.2 is released svn path=/main/trunk/; revision=8478
* Make WorldHandler lock the world file when in --fix mode.Zac Medico2007-11-051-11/+23
| | | | svn path=/main/trunk/; revision=8432
* Add support for package sets in WorldHandler.Zac Medico2007-11-051-1/+11
| | | | svn path=/main/trunk/; revision=8431
* Bug #184118 - Add an emaint "cleanresume" action that deletesZac Medico2007-10-221-1/+50
| | | | | | | any existing resume lists from the mtimedb. Thanks to Arfrever Frehtes Taifersar Arahesis for the initial patch. svn path=/main/trunk/; revision=8224
* Clean up system and world set handling. For forward compatibility, the ↵Zac Medico2007-07-031-1/+2
| | | | | | world file handling now allows the world file to contain arbitrary atoms such as slot atoms. svn path=/main/trunk/; revision=7131
* For bug #180706, add sorting and a trailing newline in the rest of the cases ↵Zac Medico2007-06-241-1/+2
| | | | | | where the world file is written. svn path=/main/trunk/; revision=6999
* Create one unified dbapi.update_ents() method and use it for both ↵Zac Medico2007-05-311-17/+1
| | | | | | fixpackages and the emaint move{inst,bin} targets. svn path=/main/trunk/; revision=6686
* Fix emaint world $ROOT handling.Zac Medico2007-05-281-2/+2
| | | | svn path=/main/trunk/; revision=6653
* Add new emaint targets called "moveinst" and "movebin" for applying package ↵Zac Medico2007-05-281-1/+121
| | | | | | moves from $PORTDIR/profiles/updates/ on installed packages and binary packages. svn path=/main/trunk/; revision=6652
* Make emaint prune stale entires from $PKGDIR/Packages.Zac Medico2007-05-271-2/+36
| | | | svn path=/main/trunk/; revision=6644
* Add an emaint "binhost" target which does the time consuming population of ↵Zac Medico2007-05-271-1/+59
| | | | | | $PKGDIR/Packages that is necessary for a binhost (MD5 makes it relatively slow). It reuses metadata from the existing Packages file whenever possible. svn path=/main/trunk/; revision=6643