summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a Makefile derived from the portage ebuild.Zac Medico2012-03-162-1/+215
| | | | This will fix bug #335320.
* Display: spawn pkg_nofetch when appropriateMartin von Gagern2012-03-131-1/+12
| | | | Signed-off-by: Zac Medico <zmedico@gentoo.org>
* QA: detect pkg-config files that bleed LDFLAGSMike Frysinger2012-03-121-0/+7
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: ignore changes in whitespace (-b) for automergeMike Frysinger2012-03-121-16/+13
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* portageq: add "colormap" helperMike Frysinger2012-03-114-7/+17
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: fix logic bug with protected filesMike Frysinger2012-03-111-3/+4
| | | | | | | | The rewrite introduced a slight bug with protected files. Fix that, and rework the code slightly to make it obvious that we want a diff set of options for files and dirs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: handle symlinked filesMike Frysinger2012-03-101-4/+22
| | | | | | | | | If the config file is symlinked somewhere, then update the target rather then discarding the symlink and replacing it with a real file. URL: http://bugs.gentoo.org/330221 Reported-by: Jack Byer <ftn768@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: fix default "enter" behaviorMike Frysinger2012-03-101-2/+5
| | | | | | | | Adding support for -[3579] command line flags inadvertently broke the default behavior of hitting "enter" to automatically select the next file. Make this work again. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: add a --preen flagMike Frysinger2012-03-102-1/+9
| | | | | | | | Add a flag to merge just trivial updates and then quit. URL: http://bugs.gentoo.org/159080 Reported-by: Iván Pérez Domínguez <iperez@babel.ls.fi.upm.es> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: support scan paths on the command lineMike Frysinger2012-03-102-6/+11
| | | | | | URL: http://bugs.gentoo.org/59235 Reported-by: Cory Visi <merlin@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* dispatch-conf: do regex matching ourselvesMike Frysinger2012-03-102-17/+28
| | | | | | | This avoids having to pipe through multiple greps, as well as running diff multiple times on the same set of files. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ebuild.sh: skip EBUILD_HOOK_DIR for depend phaseZac Medico2012-03-101-15/+25
|
* install-info: avoid unnecessary shellZac Medico2012-03-081-5/+16
|
* Exit after killed while waiting on prefetch.Zac Medico2012-03-083-2/+25
|
* Use Popen to avoid unnecessary shell.Zac Medico2012-03-081-8/+45
|
* Disable 'illegally inherited' check for nofetch.Zac Medico2012-03-081-1/+5
| | | | | | It's disabled for nofetch, since that can be called by repoman and that triggers bug #407449 due to repoman not exporting non-essential variables such as INHERITED.
* dispatch-conf: add --help/--version flagsMike Frysinger2012-03-081-0/+13
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update(1): flesh out a bit moreMike Frysinger2012-03-081-6/+20
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: turn -[3579] flags into command line optionMike Frysinger2012-03-081-31/+54
| | | | | | | This lets people do `etc-update --automode -3` rather than having to do something like `echo "-3" | etc-update`. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: rewrite significantlyMike Frysinger2012-03-081-305/+338
| | | | | | | | | | | | | | This tool is very inefficient, especially in the case of auto-merging with -3/-5 and such. Rewrite the code to kill off dead paths, compress multiple greps into a single sed, cache more calculated results, and use bash code where possible rather than execing external tools. There are also style updates here, many of which fix quoting issues and other such things. The next rewrite should probably be in python, but this version is fast enough for me now even on my slow machines. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* whirlpool.py: fix WhirlpoolAdd for bug #406407Zac Medico2012-03-051-1/+1
| | | | | | | | | This file is a python port of Whirlpool.c the reference implementation: http://www.larc.usp.br/~pbarreto/whirlpool.zip Comparison of both implementations reveals a difference in loop logic at the very beginning of the WhirlpoolAdd function, which is fixed now.
* pruneNonExisting: handle eselect-opengl symlinksv2.2.0_alpha90Zac Medico2012-03-041-3/+33
| | | | | | | | | | | Only count symlinks as preserved if they still point to a hardink in the same directory, in order to handle cases where a tool such as eselect-opengl has updated the symlink to point to a hardlink in a different directory (see bug #406837). The unused hardlink is automatically found by _find_unused_preserved_libs, since the soname symlink no longer points to it. After the hardlink is removed by _remove_preserved_libs, it calls pruneNonExisting which eliminates the irrelevant symlink from the registry here.
* repoman: say Git >=1.7.9 needed for signed commitZac Medico2012-03-041-1/+22
|
* repoman: support overlays without repo_nameZac Medico2012-03-041-1/+32
|
* action_build: return 1 for "no" --ask answerZac Medico2012-02-291-1/+1
|
* cvstree.getentries: handle "ignored" files in cvsZac Medico2012-02-271-2/+8
| | | | | | | | | It's possible for files to be under version control even though they match our ignore filter, so don't ignore them if they are listed in the "Entries" file. Thanks to Mike Gilbert <floppym@gentoo.org> for reporting in this blog post: http://floppym.blogspot.com/2012/02/cvs-status-display-cvs-checkout-in-svn.html
* autounmask: Avoid unmasking live versions if possibleSebastian Luther2012-02-262-9/+71
| | | | | | | | | | | | | | | | | | | | Before this patch the allowed changes were: 1. USE 2. USE + ~arch + license 3. USE + ~arch + license + missing keywords + masks With this patch: 1. USE 2. USE + ~arch + license 3. USE + ~arch + license + missing keywords 4. USE + ~arch + license + masks 5. USE + ~arch + license + missing keywords + masks This avoids unmasking live versions, which are typically masked and have missing keywords to be avoided if there is a regular masked version available.
* Reorganize how autounmask allows changes to be madeSebastian Luther2012-02-261-52/+57
| | | | This patch does not change emerge's behaviour.
* autounmask: Fix USE change messages to display the correct parentSebastian Luther2012-02-241-0/+4
| | | | Fixes bug 399863.
* Unmerge orphan directory symlinks for bug 384397.v2.2.0_alpha89Zac Medico2012-02-221-3/+85
|
* dblink: split out _unmerge_dirs methodZac Medico2012-02-221-88/+106
| | | | | This code will need to be called twice when safely unmerging symlinks to directories (bug #384397).
* ecompressdir: handle abs symlink, bug #405327Zac Medico2012-02-221-3/+10
|
* Scheduler: hang in _schedule_tasks, bug 404995v2.2.0_alpha88Zac Medico2012-02-201-1/+2
| | | | | This is triggered whenever emerge bails out while parallel-fetch is running in the background.
* _eventloop: use explicit relative importsv2.2.0_alpha87Zac Medico2012-02-173-7/+6
|
* MtimeDB: add JSON read/writeZac Medico2012-02-171-14/+55
| | | | | | | | Support serialization as JSON instead of pickle, so that /var/cache/edb/mtimedb is human readable/writable, for those rare cases where it may be useful. Currently, pickle is still used for writes. The plan is to migrate to JSON after JSON read has been supported for some time.
* MtimeDB._load: explicitly close fileZac Medico2012-02-171-3/+5
|
* PreservedLibsRegistry: add JSON read/writeZac Medico2012-02-171-10/+51
| | | | | | | | Support serialization as JSON instead of pickle, so that /var/lib/portage/preserved_libs_registry is human readable/writable, for those rare cases where it may be useful. Currently, pickle is still used for writes. The plan is to migrate to JSON after JSON read has been supported for some time.
* repoman: make virtual.oldstyle an errorZac Medico2012-02-173-5/+13
| | | | | Also, add "allow-provide-virtuals = true" setting for metadata/layout.conf which reduces it to a warning.
* portage.5: layout.conf manifest-hashes exampleZac Medico2012-02-171-0/+2
|
* PollSelectAdapter: don't inherit PollConstantsZac Medico2012-02-171-1/+1
|
* Move Poll{Constants,SelectAdapter} to _eventloop.Zac Medico2012-02-173-5/+5
|
* Move _emerge.SlotObject to portage.util.Zac Medico2012-02-1711-17/+23
|
* SlotObject: validate __slots__ and keyword argsZac Medico2012-02-171-2/+11
|
* Remove redundant inherited __slots__ values.Zac Medico2012-02-172-2/+2
|
* EventLoop: fix _io_handler_class "f" attributeZac Medico2012-02-171-1/+1
|
* portage.package.ebuild.fetch.fetch(): Fix ResourceWarning with Python 3.2.Arfrever Frehtes Taifersar Arahesis2012-02-171-9/+10
|
* EventLoop.iteration: run timeouts lastZac Medico2012-02-171-12/+12
| | | | | Run timeouts last, in order to minimize latency in termination of iteration loops that they may control.
* SubProcess._waitpid_cb: fix args for glib compatZac Medico2012-02-171-1/+1
|
* EventLoop: prune obsolete codeZac Medico2012-02-171-70/+18
|
* EventLoop.iteration: poll for blocking, not sleepZac Medico2012-02-161-2/+5
| | | | | The effect is be mostly the same, but it's more conistent to use _do_poll for all blocking, plus it has EINTR handling.