Zac Medico [Fri, 3 Jun 2011 12:05:53 +0000 (05:05 -0700)]
portage.const: toggle constants for stable branch
_ENABLE_DYN_LINK_MAP = False
_ENABLE_PRESERVE_LIBS = False
_ENABLE_REPO_NAME_WARN = False
_ENABLE_SET_CONFIG = False
_SANDBOX_COMPAT_LEVEL = "16"
Zac Medico [Thu, 29 Sep 2011 16:48:55 +0000 (09:48 -0700)]
repoman: never force unsigned manifest commit
This removes a special case where manifests would first be commited
without signatures for category-level or greater commits. This case
behavior wasn't very useful anyway, and would be a problem if the
unsigned manifests got rejected by a commit hook (as may happen in the
near future).
Zac Medico [Thu, 29 Sep 2011 01:41:22 +0000 (18:41 -0700)]
tweak "missed updates" code from last commit
Zac Medico [Thu, 29 Sep 2011 01:10:06 +0000 (18:10 -0700)]
depgraph: verify "missed updates"
Since the change involving slot conflict parent atoms in commit
6cea2091526659521d35be6c8dc7733f69f1a760, we want to check to make
sure we don't display any false positives in the "missed updates".
Zac Medico [Thu, 29 Sep 2011 00:36:08 +0000 (17:36 -0700)]
dispatch-conf: tweak pager basename comparison
Zac Medico [Wed, 28 Sep 2011 18:41:44 +0000 (11:41 -0700)]
dispatch-conf: support PAGER var for bug #384663
Zac Medico [Wed, 28 Sep 2011 17:47:08 +0000 (10:47 -0700)]
etc-update: support PAGER env var for bug #384663
Ruggero Morsucci [Wed, 28 Sep 2011 13:50:04 +0000 (06:50 -0700)]
archive-conf: dispatch_conf import bug #384665
Zac Medico [Wed, 28 Sep 2011 13:46:19 +0000 (06:46 -0700)]
doebuild: allow_missing_manifests AttributeError
Zac Medico [Wed, 28 Sep 2011 06:48:59 +0000 (23:48 -0700)]
Manifest.write(): tweak unlink logic
This narrows the range of possible behaviors, such that the manifest
will always be either written or unlinked, eliminating the possiblity
that a stale manifest will ever be allowed to slip through without
being overwritten or unlinked.
Brian Harring [Fri, 23 Sep 2011 23:43:28 +0000 (16:43 -0700)]
manifest: controllable per repo
This adds three states to layout.conf key use-manifest; false, true, and strict.
false means "don't use manifests at all"
true means "use and generate manifests, but allow them to be missing"
strict means "manifests must be used everywhere in this repo"
BUG=chromium-os:11308
TEST=repoman manifest usage.
Zac Medico [Wed, 28 Sep 2011 05:26:27 +0000 (22:26 -0700)]
depgraph: handle unicode exception for bug 384749
Zac Medico [Tue, 27 Sep 2011 16:46:02 +0000 (09:46 -0700)]
merge: handle \r in file names for bug #384597
Zac Medico [Tue, 27 Sep 2011 14:58:26 +0000 (07:58 -0700)]
porttree.py: remove unused variables
David James [Tue, 27 Sep 2011 00:48:09 +0000 (17:48 -0700)]
Cleanup unused variables / imports reported by pyflakes.
Change-Id: I92890279dc69974da94cc9a8a5483ddd295512d4
Zac Medico [Mon, 26 Sep 2011 19:41:53 +0000 (12:41 -0700)]
tests/emerge: call ebuild(1)
Zac Medico [Sat, 24 Sep 2011 22:23:29 +0000 (15:23 -0700)]
portdbapi.xmatch: fix unknown repo / return empty
We want to return an empty list for the match-* methods, otherwise an
empty string.
Zac Medico [Sat, 24 Sep 2011 22:03:07 +0000 (15:03 -0700)]
portdbapi: deprecate unused 'visible' method
Zac Medico [Sat, 24 Sep 2011 21:44:36 +0000 (14:44 -0700)]
portdbapi.xmatch: combine match-all with others
This eliminates redundant code.
Zac Medico [Sat, 24 Sep 2011 21:31:48 +0000 (14:31 -0700)]
portdbapi.xmatch: combine minimum-all/*-visible
This eliminates redundant code.
Zac Medico [Sat, 24 Sep 2011 21:18:41 +0000 (14:18 -0700)]
portdbapi.xmatch: combine *-visible code
This allows match-visible to avoid calling match-all, which allows it
to avoid an extra loop over all repos.
Zac Medico [Sat, 24 Sep 2011 20:58:16 +0000 (13:58 -0700)]
portdbapi.xmatch: optimize minimum-visible
Also, make repoman cache IUSE, since that's required for _match_use to
work effciently. This will eliminate lots of redundant aux_get calls
for repoman, triggered by USE deps.
Zac Medico [Sat, 24 Sep 2011 20:47:34 +0000 (13:47 -0700)]
dbapi: split _match_use from _iter_match_use
Zac Medico [Sat, 24 Sep 2011 20:14:59 +0000 (13:14 -0700)]
portdbapi: tweak single-tree optimization
This optimizes aux_get and cp_list for cases where we only have a
single tree, which is common for repoman and ebuild(1).
Zac Medico [Sat, 24 Sep 2011 19:50:06 +0000 (12:50 -0700)]
portdbapi.xmatch: use _visible more
Michał Górny [Fri, 23 Sep 2011 09:15:35 +0000 (11:15 +0200)]
Invalidate 'no-herd', there will be no special herds.
Zac Medico [Sat, 24 Sep 2011 19:27:39 +0000 (12:27 -0700)]
portdbapi: split _visible from _iter_visible
Zac Medico [Sat, 24 Sep 2011 19:05:00 +0000 (12:05 -0700)]
portdbapi: move repo loop to _iter_visible
This allows use to avoid using a set to eliminate duplicates, since we
can break out of the repo loop as soon as a given cpv is found to be
visible.
Zac Medico [Sat, 24 Sep 2011 18:29:35 +0000 (11:29 -0700)]
pordbapi: split _iter_visible method from visible
Zac Medico [Sat, 24 Sep 2011 18:13:14 +0000 (11:13 -0700)]
portdbapi: combine gvisible and visible methods
There's no need to have separate methods, and this allows us to avoid
using separate aux_get calls in each method.
Zac Medico [Fri, 23 Sep 2011 21:00:26 +0000 (14:00 -0700)]
portageq best_visible: use match-all-cpv-only
Zac Medico [Fri, 23 Sep 2011 20:50:45 +0000 (13:50 -0700)]
portdbapi.xmatch: deprecate *match-list
These don't mesh well with multi-repo support.
Zac Medico [Fri, 23 Sep 2011 20:00:57 +0000 (13:00 -0700)]
portdbapi.xmatch: fix minimum-all for multi-repo
Zac Medico [Fri, 23 Sep 2011 19:52:58 +0000 (12:52 -0700)]
Fix cp_list mytree argument for match-all.
This is a regression from commit
3d07f74a2fb2e0480e126335f6981218f60da824.
Fabian Groffen [Fri, 23 Sep 2011 18:35:29 +0000 (20:35 +0200)]
install_hooks: fix variable name for PORTAGE_CONFIGROOT
in addition, omit the leading slash, since PORTAGE_CONFIGROOT contains a
trailing slash
Zac Medico [Fri, 23 Sep 2011 18:19:13 +0000 (11:19 -0700)]
portdbapi.xmatch: fix match-all for multi-repo
Zac Medico [Fri, 23 Sep 2011 17:56:15 +0000 (10:56 -0700)]
man/emerge.1: fix spelling of behavior
Zac Medico [Fri, 23 Sep 2011 17:46:38 +0000 (10:46 -0700)]
Revert "unpack: handle non-gz files from deb2targz"
This reverts commit
dd7c57ecb90949ce3306394cfe262566b87351ca.
We'll do this in a new EAPI, as discussed in bug #384147.
Zac Medico [Fri, 23 Sep 2011 17:12:19 +0000 (10:12 -0700)]
unpack: handle non-gz files from deb2targz
This will fix bug #384147.
Arfrever Frehtes Taifersar Arahesis [Fri, 23 Sep 2011 04:03:38 +0000 (06:03 +0200)]
Fix a typo.
Arfrever Frehtes Taifersar Arahesis [Fri, 23 Sep 2011 03:23:01 +0000 (05:23 +0200)]
Fix 'shopt: +s: invalid shell option name' error.
Zac Medico [Fri, 23 Sep 2011 02:29:53 +0000 (19:29 -0700)]
portdbapi.xmatch: deprecate list-visible
Zac Medico [Fri, 23 Sep 2011 01:54:52 +0000 (18:54 -0700)]
Fix Atom.with_repo() bugs.
Zac Medico [Fri, 23 Sep 2011 01:47:04 +0000 (18:47 -0700)]
Fix minimum/bestmatch-visible for multi-repo.
Zac Medico [Fri, 23 Sep 2011 00:53:45 +0000 (17:53 -0700)]
portdbapi: handle multi-repo visiblity
This will fix bug #384063. The xmatch list-visible mode was previously
used to cache a list of all visible cpvs for a given cp, but this is
not useful when there can be duplicate cpvs with different visibility
from multiple repos.
Zac Medico [Fri, 23 Sep 2011 00:47:48 +0000 (17:47 -0700)]
Atom: add a with_repo method for adding a repo
Zac Medico [Fri, 23 Sep 2011 00:17:28 +0000 (17:17 -0700)]
fetch: remove stray print for bug 383859
Zac Medico [Thu, 22 Sep 2011 23:52:47 +0000 (16:52 -0700)]
portageq best_visible: multi-repo support
This will fix bug #384063.
Zac Medico [Thu, 22 Sep 2011 19:06:18 +0000 (12:06 -0700)]
Test direct virtual circular dep for bug #384107.
Zac Medico [Thu, 22 Sep 2011 18:19:05 +0000 (11:19 -0700)]
Test || choice circular handling.
Zac Medico [Thu, 22 Sep 2011 15:44:48 +0000 (08:44 -0700)]
Tweak auto --binpkg-respect-use more.
We don't want to check for --rebuilt-binaries here, unless --usepkg
is also enabled. In fact, we can skip the --rebuilt-binaries check
since people who really want to ensure that binary packages are used
as much as possible will typically specify --usepkgonly (or
--getbinpkgonly which implies --usepkgonly).
Zac Medico [Thu, 22 Sep 2011 03:03:03 +0000 (20:03 -0700)]
Tweak automatic --binpkg-respect-use behavior.
If --binpkg-respect-use is not explicitly specified, we enable the
behavior automatically (like requested in bug #297549), as long as it
doesn't strongly conflict with other options that have been specified.
Strongly conflicting options currently include --usepkgonly and
--rebuilt-binaries.
Sebastian Luther [Thu, 22 Sep 2011 02:04:11 +0000 (19:04 -0700)]
Make --binpkg-respect-use=y the default
Explicitly stating --binpkg-respect-use=y will disable the ignored
binary warning. This will fix bug #297549.
Sebastian Luther [Thu, 22 Sep 2011 01:59:17 +0000 (18:59 -0700)]
Warn about ignored binary packages with non matching USE
Brian Harring [Wed, 21 Sep 2011 22:50:28 +0000 (15:50 -0700)]
add install hooks
Zac Medico [Wed, 21 Sep 2011 19:32:19 +0000 (12:32 -0700)]
emerge: add --complete-graph-if-new-ver < y | n >
Trigger the --complete-graph behavior if an installed package version will
change (upgrade or downgrade). This option is enabled by default.
Sebastian Luther [Wed, 21 Sep 2011 14:11:06 +0000 (07:11 -0700)]
Point users to the man page instead of duplicating it in --help
Sebastian Luther [Wed, 21 Sep 2011 12:23:44 +0000 (14:23 +0200)]
autounmask: Always use unresticted atoms for license and USE changes
See bug 379333.
Sebastian Luther [Mon, 19 Sep 2011 13:07:08 +0000 (15:07 +0200)]
Reject inconsistent backtrack parameters
If backtracking masks a package that caused another package to
be masked, we declare this backtracking node as invalid. The
backtracker should be able to find another node that gives a
valid solution if one exists. This fixes bug 375573.
Zac Medico [Mon, 19 Sep 2011 16:03:24 +0000 (09:03 -0700)]
Document ** keyword for --autounmask-keep-masks.
Zac Medico [Mon, 19 Sep 2011 15:53:55 +0000 (08:53 -0700)]
Suggest --autounmask-keep-masks for ** keyword.
Sebastian Luther [Mon, 19 Sep 2011 11:05:23 +0000 (13:05 +0200)]
Suggest --autounmask-keep-masks instead of --autounmask=n
Currently emerge suggests --autounmask=n if any configuration
change is proposed. With this patch it will print a suggestion
only for mask changes, as these are the changes people complain
most about. It will suggest --autounmask-keep-masks in this case.
Sebastian Luther [Mon, 19 Sep 2011 14:32:08 +0000 (07:32 -0700)]
autounmask: Add --autounmask-keep-masks option
Disables creation of p.unmask entries to allow users
to insist on their masks and hope for another conflict
resolution (i.e. missed update). This fixes bug 372485.
Sebastian Luther [Mon, 19 Sep 2011 11:45:35 +0000 (13:45 +0200)]
autounmask: Add --autounmask-unrestricted-atoms option
The default behavior of --autounmask is now changed back to
the original one, namely to use '=' operators. The
--autounmask-unrestricted-atoms option allows the use of '>='
operators whenever possible. This addresses the issues raised
in bugs 372405, 374331 and 379333.
Zac Medico [Mon, 19 Sep 2011 03:17:44 +0000 (20:17 -0700)]
bin/ebuild: simplify PORTDIR_OVERLAY query
There's no need to query os.environ here, because portage.settings
will inherit the value automatically.
Zac Medico [Mon, 19 Sep 2011 03:05:35 +0000 (20:05 -0700)]
Test --prune with virtual slots.
Zac Medico [Sun, 18 Sep 2011 23:45:20 +0000 (16:45 -0700)]
env_update: add more vardbapi fallback code
For API consumers that call this function without the vardbapi
parameter, it whould continue to work correctly in all the cases
that worked before the vardbapi was added.
Zac Medico [Sun, 18 Sep 2011 22:47:45 +0000 (15:47 -0700)]
env_update: use global vardbapi as fallback
Zac Medico [Sun, 18 Sep 2011 21:57:08 +0000 (14:57 -0700)]
get_dep_chain: fix KeyError if start_node is root
Zac Medico [Sun, 18 Sep 2011 20:41:07 +0000 (13:41 -0700)]
install_qa_check: adjust "poor programming" msgs
Refer to "severe warnings" rather than "poor programming", in order to
be more politically correct, as discussed in bug #374233.
Sebastian Luther [Sun, 18 Sep 2011 20:00:57 +0000 (22:00 +0200)]
autounmask: Document where changes are writen
Sebastian Luther [Sun, 18 Sep 2011 19:30:46 +0000 (21:30 +0200)]
autounmask: Ensure a suitable parent is displayed in the dep chain
Fixes bug 375265.
Sebastian Luther [Sun, 18 Sep 2011 19:28:12 +0000 (21:28 +0200)]
ResolverPlayground: Add support for world sets
Zac Medico [Sun, 18 Sep 2011 19:42:38 +0000 (12:42 -0700)]
depclean: don't remove new virtual slots
This provides depclean symmetry with the change in update behavior
from commit
b95cbb6b78ad6d9b8e2d3edc5fafff122c3ce7c5, so that new
virtual slots won't be removed by depclean immediately after they
have been pulled in.
Zac Medico [Sat, 17 Sep 2011 18:06:48 +0000 (11:06 -0700)]
RepoConfigLoader: handle ValueError from shlex
This will handle the issue reported in bug #383269, comment #5.
Zac Medico [Sat, 17 Sep 2011 17:51:26 +0000 (10:51 -0700)]
_RepoDisplay: split PORTDIR_OVERLAY with shlex
This fixes the issue in bug #383269, comment #8.
Alon Bar-Lev [Sat, 17 Sep 2011 17:32:25 +0000 (10:32 -0700)]
emerge-webrsync: exit if "gpg binary not found"
This prevents an endless loop (bug #383375).
Zac Medico [Sat, 17 Sep 2011 05:50:36 +0000 (22:50 -0700)]
config: quote PORTDIR_OVERLAY paths more
This fixes the issue in bug #383269, comment #3.
Zac Medico [Sat, 17 Sep 2011 04:09:02 +0000 (21:09 -0700)]
repoman: quote paths in PORTDIR_OVERLAY
This will fix bug #383269.
Brian Harring [Thu, 15 Sep 2011 22:06:44 +0000 (15:06 -0700)]
move locking into env_update itself
Zac Medico [Thu, 15 Sep 2011 05:48:26 +0000 (22:48 -0700)]
Remove unused Manifest imports.
Zac Medico [Thu, 15 Sep 2011 05:34:38 +0000 (22:34 -0700)]
doebuild: avoid redundant distfiles checks
Zac Medico [Thu, 15 Sep 2011 05:30:46 +0000 (22:30 -0700)]
digestcheck: only show relevant msgs for thin
Zac Medico [Thu, 15 Sep 2011 05:09:04 +0000 (22:09 -0700)]
Fix multislot handling for depclean (bug #382823)
Zac Medico [Thu, 15 Sep 2011 04:15:39 +0000 (21:15 -0700)]
Test non-empty thin manifests.
Zac Medico [Thu, 15 Sep 2011 02:55:03 +0000 (19:55 -0700)]
Handle non-existent thin manifest in tests.
Zac Medico [Thu, 15 Sep 2011 02:44:28 +0000 (19:44 -0700)]
digestcheck: remove empty/missing Manifest checks
These checks never really needed, and they are not valid for thin
manifests or allow-missing-manifests.
Zac Medico [Thu, 15 Sep 2011 02:36:54 +0000 (19:36 -0700)]
Remove Manifest if it is not needed.
With thin manifest, there's no need to have a Manifest file if there
are no DIST entries.
Zac Medico [Thu, 15 Sep 2011 02:21:45 +0000 (19:21 -0700)]
Don't write empty (thin) Manifest files.
With thin manifest, there's no need to have a Manifest file if there
are no DIST entries.
Arfrever Frehtes Taifersar Arahesis [Wed, 14 Sep 2011 20:45:23 +0000 (22:45 +0200)]
Fix typos in comments.
Arfrever Frehtes Taifersar Arahesis [Wed, 14 Sep 2011 20:39:06 +0000 (22:39 +0200)]
Fix grammar in some messages.
Zac Medico [Wed, 14 Sep 2011 20:23:34 +0000 (13:23 -0700)]
repoman: use repodir more
Zac Medico [Wed, 14 Sep 2011 18:40:06 +0000 (11:40 -0700)]
repoman: test symlinked repo path
Zac Medico [Wed, 14 Sep 2011 18:34:19 +0000 (11:34 -0700)]
repoman: use the repodir variable more
Zac Medico [Wed, 14 Sep 2011 17:08:52 +0000 (10:08 -0700)]
digestgen: remove duplicate 'mytree' variables
Zac Medico [Wed, 14 Sep 2011 16:23:18 +0000 (09:23 -0700)]
digestgen: handle get_repo_for_location KeyError
Zac Medico [Wed, 14 Sep 2011 16:08:19 +0000 (09:08 -0700)]
repoman: fix KeyError from digestgen with symlink
Zac Medico [Wed, 14 Sep 2011 04:49:23 +0000 (21:49 -0700)]
Deprecate the manifest1_compat parameter.
Zac Medico [Wed, 14 Sep 2011 02:35:36 +0000 (19:35 -0700)]
manifest: remove unused 'pf is None' case
Zac Medico [Tue, 13 Sep 2011 06:06:50 +0000 (23:06 -0700)]
man/portage.5: layout.conf examples manifests