| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This is especially necessary when running in prefix mode, since
sys.path may contain the path for a different version of portage.
|
|
|
|
| |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
| |
|
| |
|
|
|
|
|
|
| |
Since we're supposed to be able to efficiently obtain the EAPI from
_parse_eapi_ebuild_head, we don't need to write or trust cache entries
for unsupported EAPIs.
|
| |
|
| |
|
|
|
|
|
| |
Since commit 11a7448f1d5a0bfb38f8de9d66a8fa8d7118c877, the config
constructor uses portage.const.EPREFIX by default.
|
| |
|
| |
|
|
|
|
|
| |
portage.dbapi.porttree.portdbapi objects. Migrate consumers to repositories
attribute of portage.dbapi.porttree.portdbapi objects.
|
| |
|
|
|
|
|
| |
We can use the raise_stat_collision attribute to determine when it is
necessary to check for redundant writes.
|
| |
|
|
|
|
|
| |
The pms cache already does this automatically, since __setitem__ calls
are used to detect stat collisions in order to solve bug #139134.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This has been broken since the _eclasses_ structure changed in commit
2ed1cb53cc4158af08c22d466b15b9a9a7767212.
|
| |
|
|
|
|
|
| |
If layout.conf contains "cache-formats = md5-dict pms", egencache will
now write both 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.
|
| |
|
|
|
|
|
|
|
| |
This fixes a regression in FEATURES=parse-eapi-ebuild-head support
for egencache since commit 2ed1cb53cc4158af08c22d466b15b9a9a7767212.
If the metadata does not contain _mtime_ here, then _setitem from
cache.metadata.database will raise KeyError.
|
|
|
|
|
|
|
|
|
|
| |
Specifically, the cache can use any portage supported checksum method,
or use the standard mtime approach. In addition, support controlling
whether or not paths are stored, and generally try to restore some
of the centralization/encapsulation that was in place originally.
(cherry picked from commit bc1aed614fb588f0ade5bcb5d1265a8db0f8d247)
Change-Id: Ic38057e7dbb15063c64a93c99e66e113a7d4c70e
|
|
|
|
|
|
|
|
|
|
|
| |
Controllable via 'cache-format', currently it supports only one cache;
'pms', and defaults to it. If an unsupported cache-format is specified,
the cache is disabled. If pms is specified and metadata/cache directory
doesn't exist, the cache is disabled.
Finally, this rips out the best module support for locally overriding
the cache format used for pregenerated caches; this functionality made
zero sense (upstream determines the format, we use what is available).
|
| |
|
|
|
|
|
|
| |
It should be enough that the automatic use of metadata-transfer is
documented in the man page, and allows us to avoid showing a useless
warning in common usage scenarios.
|
| |
|
|
|
|
|
| |
This tests --update in any case, and --update-use-local-desc only if
python xml support is detected.
|
| |
|
|
|
|
|
|
|
| |
This is prevents "DeprecationWarning: This method of XMLParser is
deprecated. Define doctype() method on the TreeBuilder target."
warnings. The code is copied from repoman, commit
5a5e51a2737a0855bb562683f50c57cc31587460.
|
|
|
|
| |
This will fix bug #353648.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This will fix bug #354687.
|
|
|
|
|
|
| |
Errors returned from --update-use-local-desc and --update-changelogs
are no longer ignored with --tolerant. This will fix part of
bug #354687.
|
| |
|
|
|
|
|
| |
This allows PollScheduler instances to do basic cleanup and terminate
gracefully when SIGINT or SIGTERM signals are received.
|
|
|
|
|
| |
This is the same convention that bash uses for returncodes of
processes that are killed by signals.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Compare the last commit timestamp with the ChangeLog file timestamp to
guess whether a particular ChangeLog needs updating.
|
|
|
|
|
| |
Drop common commit message suffixes like 'git-svn-id' and repoman
version note.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
use.local.desc (fixes possible unicode issues with python3).
|
|
|
|
|
|
| |
order to avoid potential character encoding issues (both in terms
of decoding and in calculating file position given variable-width
character encodings like UTF-8.
|