Zac Medico [Mon, 7 Nov 2011 15:27:23 +0000 (07:27 -0800)]
REQUIRED_USE: don't save in built packages
It should be safe to assume that REQUIRED_USE is satisfied if the
package is built, so it's a waste to save it. Also, fix code which
assumes that built Package instances have a REQUIRED_USE key in their
metadata.
Zac Medico [Mon, 7 Nov 2011 08:45:01 +0000 (00:45 -0800)]
environment.bz2: filter more variables
Zac Medico [Mon, 7 Nov 2011 08:32:18 +0000 (00:32 -0800)]
save_ebuild_env: filter more functions
dyn_pretend
helpers_die
nonfatal
register_success_hook
Zac Medico [Mon, 7 Nov 2011 08:14:29 +0000 (00:14 -0800)]
Handle empty PORTAGE_COMPRESS for bug #389047.
This fixes a case where empty PORTAGE_COMPRESS made ecompressdir forget
to call restore_skip_dirs, such that docompress -x resulted in files
not being installed due to hide_skip_dirs hiding them permanently.
Zac Medico [Mon, 7 Nov 2011 07:37:33 +0000 (23:37 -0800)]
emerge --changelog: ChangeLog-YYYY, bug #389611
Zac Medico [Mon, 7 Nov 2011 06:32:30 +0000 (22:32 -0800)]
Respect --usepkgonly in suggestions, bug #389617
Zac Medico [Mon, 7 Nov 2011 06:01:51 +0000 (22:01 -0800)]
Add emerge --moo action for bug #389609.
Zac Medico [Sun, 6 Nov 2011 05:43:34 +0000 (22:43 -0700)]
runtests.sh: use 0 to control arg parse loop
Zac Medico [Sat, 5 Nov 2011 18:53:20 +0000 (11:53 -0700)]
Enable colors during the depend phase.
Zac Medico [Wed, 2 Nov 2011 04:57:10 +0000 (21:57 -0700)]
phase-helpers.sh: fix best/has_version for prefix
Zac Medico [Wed, 2 Nov 2011 02:26:56 +0000 (19:26 -0700)]
test_dodir: fix breakage from last commit
We have to set the EAPI for prefix code to work.
Zac Medico [Wed, 2 Nov 2011 02:17:19 +0000 (19:17 -0700)]
Add EPREFIX and ED support in all ebuild helpers.
This allows our prefix tests to use helpers like insinto, doins, and dosym.
Zac Medico [Wed, 2 Nov 2011 01:47:56 +0000 (18:47 -0700)]
Merge install_qa_check_prefix from prefix branch.
Zac Medico [Sun, 30 Oct 2011 07:15:57 +0000 (00:15 -0700)]
_profile_node: use collections.namedtuple
Zac Medico [Sun, 30 Oct 2011 07:08:22 +0000 (00:08 -0700)]
news.py: remove unused 'updates' variable
Zac Medico [Sun, 30 Oct 2011 06:52:42 +0000 (23:52 -0700)]
_legacy_globals: fix grammar in comment
Arfrever Frehtes Taifersar Arahesis [Sun, 30 Oct 2011 06:40:52 +0000 (07:40 +0100)]
Fix typos in comments.
Zac Medico [Sun, 30 Oct 2011 06:20:53 +0000 (23:20 -0700)]
git_sync_timestamps: validation_chf == mtime
Zac Medico [Sun, 30 Oct 2011 05:24:58 +0000 (22:24 -0700)]
egencache: tweak redundant write check condition
We can use the raise_stat_collision attribute to determine when it is
necessary to check for redundant writes.
Zac Medico [Sun, 30 Oct 2011 00:25:42 +0000 (17:25 -0700)]
env_update: lstrip os.sep in join with eprefix
Zac Medico [Sat, 29 Oct 2011 23:52:06 +0000 (16:52 -0700)]
portagetree: remove broken depcheck method
It called dep_check without the required third argument.
Zac Medico [Sat, 29 Oct 2011 23:43:21 +0000 (16:43 -0700)]
Use dbapi._known_keys more.
Zac Medico [Sat, 29 Oct 2011 23:10:13 +0000 (16:10 -0700)]
cache/template.__getitem__: filter INHERITED
Never return INHERITED, since portdbapi.aux_get() will generate it
automatically from _eclasses_, and we want to omit it in comparisons
between cache entries like those that egencache uses to avoid redundant
writes (see commit
0e120da008c9d0d41c9372c81145c6e153028a6d).
Zac Medico [Sat, 29 Oct 2011 22:43:35 +0000 (15:43 -0700)]
action_metadata: clean up src entry validation
This eliminates a bunch of redundant eclasses code that we handle with
template.validate_entry() instead.
Zac Medico [Sat, 29 Oct 2011 21:41:38 +0000 (14:41 -0700)]
EbuildMetadataPhase: use /dev/null for stdin
Zac Medico [Sat, 29 Oct 2011 21:31:00 +0000 (14:31 -0700)]
actions.py: remove unused variables
Zac Medico [Sat, 29 Oct 2011 20:55:07 +0000 (13:55 -0700)]
action_metadata: use auxdbkeys to compare entries
This borrows the approach that egencache uses since commit
0e120da008c9d0d41c9372c81145c6e153028a6d.
Zac Medico [Sat, 29 Oct 2011 20:36:23 +0000 (13:36 -0700)]
egencache: avoid redundant md5-dict writes
The pms cache already does this automatically, since __setitem__ calls
are used to detect stat collisions in order to solve bug #139134.
Zac Medico [Sat, 29 Oct 2011 19:38:51 +0000 (12:38 -0700)]
egencache: ensure correct porttrees
The GenCache class assumes that portdb.porttrees[0] is the desired
tree, so assert that it is true. The behavior should have already been
correct, since PORTDIR_OVERLAY was already set to an empty string when
necessary.
Zac Medico [Sat, 29 Oct 2011 18:56:14 +0000 (11:56 -0700)]
egencache: fix StatCollision handling breakage
This has been broken since the _eclasses_ structure changed in commit
2ed1cb53cc4158af08c22d466b15b9a9a7767212.
Zac Medico [Sat, 29 Oct 2011 18:33:27 +0000 (11:33 -0700)]
egencache: update ebuild_hash.mtime after utime
Zac Medico [Sat, 29 Oct 2011 17:48:30 +0000 (10:48 -0700)]
emerge --metadata: support md5-dict
This adds support to action_metadata() for use of arbitrary validation
methods, which were introduced in commit
2ed1cb53cc4158af08c22d466b15b9a9a7767212.
Zac Medico [Sat, 29 Oct 2011 08:16:11 +0000 (01:16 -0700)]
man/portage.5: profile-formats example
Zac Medico [Sat, 29 Oct 2011 08:11:09 +0000 (01:11 -0700)]
man/portage.5: cache-formats example
Zac Medico [Sat, 29 Oct 2011 07:59:02 +0000 (00:59 -0700)]
egencache: multiple cache-formats support
If layout.conf contains "cache-formats = md5-dict pms", egencache will
now write both formats.
Zac Medico [Sat, 29 Oct 2011 06:57:29 +0000 (23:57 -0700)]
git_sync_timestamps: fix breakage
This has been broken since metadbmodule support was removed in commit
d4ea29bf6a3ce35d49e0f54f9173e3a6e42da2d6.
Zac Medico [Sat, 29 Oct 2011 06:15:21 +0000 (23:15 -0700)]
RepoConfig: add iter_pregenerated_caches method
This will be used by egencache to generate cache for all supported
formats.
Zac Medico [Sat, 29 Oct 2011 05:35:01 +0000 (22:35 -0700)]
quickpkg: fix regression in hardlink support
Hardlink support has been broken since commit
4198da0184aaec30c41f2e5d2c7af71c4d35b662, which omitted the hardlink
logic from TarFile.gettarinfo().
Daniel Robbins [Sat, 29 Oct 2011 04:06:00 +0000 (04:06 +0000)]
Fix an issue where emerge will abort when merge starts if we have a file in our Manifest that does not exist on disk, even with thin-manifest enabled.
Zac Medico [Sat, 29 Oct 2011 04:17:11 +0000 (21:17 -0700)]
Deprecate unused 'virtual' constructor parameters
Zac Medico [Sat, 29 Oct 2011 03:34:34 +0000 (20:34 -0700)]
_trees_dict: define __slots__
Zac Medico [Sat, 29 Oct 2011 03:26:18 +0000 (20:26 -0700)]
portageq: refer to <eroot> instead of <root>
Since commit
a715b65f7bd36409c1283e6911265d1f4405ab7a, portageq takes
EROOT as the first argument of commands that require a root argument.
So, update the docs to refer to <eroot> instead of <root>.
Zac Medico [Sat, 29 Oct 2011 03:20:29 +0000 (20:20 -0700)]
Use EROOT to validate path arguments.
Zac Medico [Sat, 29 Oct 2011 03:10:23 +0000 (20:10 -0700)]
Use any() instead of list(filter()).
Zac Medico [Sat, 29 Oct 2011 00:12:11 +0000 (17:12 -0700)]
Use bytes instead of unicode with isinstance.
This is preferred since the bytes type is available in all supported
python versions, while the unicode type is only available in python2.
Zac Medico [Fri, 28 Oct 2011 22:20:35 +0000 (15:20 -0700)]
ResolverPlayground: remove unused root attribute
Zac Medico [Fri, 28 Oct 2011 22:06:50 +0000 (15:06 -0700)]
config: discard profiles_complex attribute
Like LocationsManager, it's only used in the constructor, so there's
no need to hold a reference after the constructor completes.
Zac Medico [Fri, 28 Oct 2011 20:13:07 +0000 (13:13 -0700)]
Check for bytes instead of unicode in args.
This simplifies the checks since the bytes type is available in all
supported python versions, while the unicode type is only available in
python2.
Zac Medico [Fri, 28 Oct 2011 18:03:02 +0000 (11:03 -0700)]
quickpkg: fix unicode for bug #388773
Zac Medico [Fri, 28 Oct 2011 07:21:05 +0000 (00:21 -0700)]
SetConfig: use read_file/readfp for unicode
Zac Medico [Fri, 28 Oct 2011 07:17:25 +0000 (00:17 -0700)]
RepoConfigLoader: python3.2 readfp deprecation
Zac Medico [Fri, 28 Oct 2011 06:48:44 +0000 (23:48 -0700)]
RepoConfigLoader: use readfp for unicode
Zac Medico [Fri, 28 Oct 2011 06:20:26 +0000 (23:20 -0700)]
RepoConfigLoader: sort layout.conf attributes
Zac Medico [Fri, 28 Oct 2011 06:17:19 +0000 (23:17 -0700)]
RepoConfigLoader: support incremental aliases
This allows a user to discard unwanted aliases that are specified in
a repo's layout.conf.
Zac Medico [Fri, 28 Oct 2011 05:38:31 +0000 (22:38 -0700)]
RepoConfigLoader: comment on masters override
Zac Medico [Fri, 28 Oct 2011 05:30:34 +0000 (22:30 -0700)]
RepoConfig.update(): getattr/setattr loop
Zac Medico [Fri, 28 Oct 2011 05:14:51 +0000 (22:14 -0700)]
parse_layout_conf: comment on masters fallback
Zac Medico [Fri, 28 Oct 2011 04:55:28 +0000 (21:55 -0700)]
Fix profile-formats spelling in messages.
Zac Medico [Fri, 28 Oct 2011 02:48:16 +0000 (19:48 -0700)]
MaskManager: portage-1-compat warnings.warn
Zac Medico [Fri, 28 Oct 2011 02:32:49 +0000 (19:32 -0700)]
stacklevel=3 for properties warnings
There's an extra level for the @property wrapper.
Zac Medico [Fri, 28 Oct 2011 02:15:34 +0000 (19:15 -0700)]
Fix mydcfg from last commit.
Zac Medico [Fri, 28 Oct 2011 02:04:25 +0000 (19:04 -0700)]
config: remove cruft
The mygcfg and packages_list attributes are both useless.
Zac Medico [Fri, 28 Oct 2011 01:45:19 +0000 (18:45 -0700)]
grab_pmask: use local repo_config reference
The previous code worked, but it looked wrong because it was using the
'repo' variable from the parent scope.
Zac Medico [Fri, 28 Oct 2011 01:17:55 +0000 (18:17 -0700)]
Fix missed ROOT -> EROOT changes.
These go along with commit
a715b65f7bd36409c1283e6911265d1f4405ab7a.
Zac Medico [Fri, 28 Oct 2011 00:53:51 +0000 (17:53 -0700)]
create_trees: ensure trees is _trees_dict type
Zac Medico [Thu, 27 Oct 2011 20:49:40 +0000 (13:49 -0700)]
LocationsManager: extensible _profile_node object
Use immutable object attrubutes instead of tuples, for extensibility.
Zac Medico [Thu, 27 Oct 2011 19:41:42 +0000 (12:41 -0700)]
parse_layout_conf: grab repo_name for error msgs
This allows us to avoid duplicate warnings for 'unspecified' repo since
parse_layout_conf is initially called without specifying the repo in
LocationsManager.load_profiles().
Zac Medico [Thu, 27 Oct 2011 19:02:26 +0000 (12:02 -0700)]
Fix profile-formats spelling in messages.
Zac Medico [Thu, 27 Oct 2011 18:49:20 +0000 (11:49 -0700)]
LocationsManager._addProfile: realpath parents
If it seems that a parent may point outside of the current repo,
realpath it.
Zac Medico [Thu, 27 Oct 2011 18:29:33 +0000 (11:29 -0700)]
LocationsManager.load_profiles: realpath repos
Since we already call realpath on make.profile, we also need to call
realpath on the repo paths that we compare its nodes to.
Zac Medico [Thu, 27 Oct 2011 17:22:33 +0000 (10:22 -0700)]
LocationsManager: portage-1-compat warnings.warn
Zac Medico [Thu, 27 Oct 2011 17:10:53 +0000 (10:10 -0700)]
parse_layout_conf: fix profile-formats warning
Zac Medico [Thu, 27 Oct 2011 16:46:04 +0000 (09:46 -0700)]
fix previous commit to call ensure_dirs
Zac Medico [Thu, 27 Oct 2011 16:31:33 +0000 (09:31 -0700)]
Run pkg_pretend in PORTAGE_TMPDIR for bug #388593
Zac Medico [Thu, 27 Oct 2011 05:55:42 +0000 (22:55 -0700)]
repoman: add opts and repo config debug output
Zac Medico [Thu, 27 Oct 2011 05:52:04 +0000 (22:52 -0700)]
repoman: add opts and repo config debug output
Zac Medico [Thu, 27 Oct 2011 05:32:34 +0000 (22:32 -0700)]
parse_layout_conf: fix inverted update-changelog
The logic got inverted when parse_layout_conf was split out in commit
0be173a54a5248cfd70a3543d7099d2dd3ee254b.
Zac Medico [Thu, 27 Oct 2011 05:09:19 +0000 (22:09 -0700)]
RepoConfigLoader: redundant cache_formats setting
There's a loop that already handles this via setattr.
Zac Medico [Thu, 27 Oct 2011 04:43:25 +0000 (21:43 -0700)]
man/make.conf.5: mention LINGUAS in USE_ORDER doc
The reason for env.d being in USE_ORDER is not really obvious, so
mention LINGUAS as an example (from bug #187016).
Zac Medico [Thu, 27 Oct 2011 04:22:26 +0000 (21:22 -0700)]
Add emerge --check-news for bug #388233.
Zac Medico [Thu, 27 Oct 2011 03:13:12 +0000 (20:13 -0700)]
Add public news functions for bug #388233.
count_unread_news(portdb, vardb, repos=None, update=True)
display_news_notifications(news_counts)
Martin von Gagern [Wed, 26 Oct 2011 21:59:14 +0000 (14:59 -0700)]
man/make.conf.5: elaborate on prelink-checksums
Martin von Gagern [Wed, 26 Oct 2011 21:49:36 +0000 (14:49 -0700)]
Bug #388615 - optimize FEATURES=prelink-checksums
Only spawn prelink if the file has an ELF header.
Zac Medico [Wed, 26 Oct 2011 18:13:27 +0000 (11:13 -0700)]
UpdateChangeLog: sort files
Zac Medico [Tue, 25 Oct 2011 22:52:59 +0000 (15:52 -0700)]
layout.conf: rename cache_format to cache_formats
We read layout.conf cache-formats from left to right and use the first
supported type that's found. This will allow support for multiple
formats in parallel, providing for smooth transitions between formats.
Brian Harring [Tue, 25 Oct 2011 05:41:17 +0000 (22:41 -0700)]
add profile-formats portage-1 awareness and enforcement
Currently it just spits warnings for implicit portage-1 format usage;
down the line, this will be converted into an explicit error.
For repo's that configure themselves as portage-1 or pms explicitly, enforce
it.
Brian Harring [Tue, 25 Oct 2011 05:40:16 +0000 (22:40 -0700)]
layout.conf: add profile-format awareness
Note the portage-1-compat mode; this isn't settable externally, is
purely an internal mode for tracking if a repository is in portage-1
compat mode, rather than explicit portage-1 mode.
This compat mode will be removed once portage becomes strict.
Brian Harring [Tue, 25 Oct 2011 05:37:34 +0000 (22:37 -0700)]
Track profile format, and if compatibility mode is in use.
Warn if the profile is using portage-1 format, but isn't marked as such.
Brian Harring [Tue, 25 Oct 2011 00:38:33 +0000 (17:38 -0700)]
split out layout.conf parsing so it's usable elsewhere
Zac Medico [Tue, 25 Oct 2011 19:52:40 +0000 (12:52 -0700)]
runtests.sh: fix arguments pass-through
Zac Medico [Tue, 25 Oct 2011 16:41:15 +0000 (09:41 -0700)]
test_config: test PORTDIR default masters
Zac Medico [Tue, 25 Oct 2011 14:51:26 +0000 (07:51 -0700)]
expand_new_virt: fix vardbapi.root reference
Zac Medico [Tue, 25 Oct 2011 08:59:39 +0000 (01:59 -0700)]
Use EROOT instead of ROOT for keys everywhere.
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.
Zac Medico [Tue, 25 Oct 2011 08:25:24 +0000 (01:25 -0700)]
create_trees: save target_root for later use
Zac Medico [Tue, 25 Oct 2011 08:09:26 +0000 (01:09 -0700)]
ResolverPlayground: use create_trees
Zac Medico [Tue, 25 Oct 2011 06:42:51 +0000 (23:42 -0700)]
runtests.sh: add --python-versions option
Zac Medico [Tue, 25 Oct 2011 06:27:58 +0000 (23:27 -0700)]
tests/emerge: test pkg_config and pkg_info
Zac Medico [Tue, 25 Oct 2011 06:18:42 +0000 (23:18 -0700)]
Remove unused root parameters from doebuild calls
Zac Medico [Tue, 25 Oct 2011 00:15:51 +0000 (17:15 -0700)]
tests/emerge: test file owner lookup
Zac Medico [Mon, 24 Oct 2011 22:26:35 +0000 (15:26 -0700)]
doebuid: deprecate redundant "root" parameter