| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=373669
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 reverts commit 52f6b55d51e2accaa446bc5d6920421959289baa.
Since split() never return empty tokens, this patch does nothing.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
elements since the DTD allows it. Thanks to Mark Loeser <Halcy0n@g.o>
for reporting.
|
| |
|
|
|
|
|
|
|
| |
Return a dict of dicts in parse_metadata_use(), with second-level keys
being the restrict strings (or None when no restrict). When generating
use.local.desc, use the description from the possibly-highest-matching
atom.
|
|
|
|
|
|
|
| |
* Allow empty descriptions (backward compatibility).
* Support multiple 'use' elements.
* If multiple 'flag' elements have the same name attribute, use
the first occurance.
|
| |
|
|
|
|
|
| |
python-2.7, so egencache --update-use-local-desc gets all of the inner
text.
|
| |
|
|
|
|
|
|
| |
Grab the USE descriptions from metadata.xml within parse_metadata_use().
Instead of a plain flag list, return a dict containing both the flag
names and their descriptions.
|
|
|
|
| |
check_metadata_herds().
|
| |
|
|
|
|
|
| |
As repoman regenerates and readds Manifests anyway, there's no reason to
complain when one hasn't been added yet.
|
|
|
|
|
|
| |
Move the real code into repoman.utilities. Support any repository depth
for distributed SCMs -- i.e. Sunrise through git-svn. Bail out if more
than one control version directory is found at the same depth.
|
|
|
|
|
|
| |
Previously, <flag/>-related errors in metadata.xml caused repoman
to abort the checks without even reporting the full path to broken
metadata.xml file. Now they are accounted as 'metadata.bad' errors.
|
|
|
|
| |
check_metadata_herds().
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
svn path=/main/trunk/; revision=15216
|
|
|
|
|
|
| |
compatibility with Python 3.
svn path=/main/trunk/; revision=14421
|
|
|
|
|
|
|
|
| |
dict.(iterkeys|itervalues|iteritems)() for compatibility with Python 3.
(2to3-3.1 -f dict -nw ${FILES})
svn path=/main/trunk/; revision=14327
|
|
|
|
|
|
|
|
| |
for compatibility with Python 3.
(2to3-3.1 -f itertools -f itertools_imports -nw ${FILES})
svn path=/main/trunk/; revision=14314
|
|
|
|
| |
svn path=/main/trunk/; revision=14302
|
|
|
|
| |
svn path=/main/trunk/; revision=14294
|
|
|
|
|
|
| |
(2to3-3.1 -f print -nw ${FILES})
svn path=/main/trunk/; revision=14290
|
|
|
|
|
|
| |
(2to3-3.1 -f except -nw ${FILES})
svn path=/main/trunk/; revision=14289
|
|
|
|
|
|
| |
$PWD is unset. Thanks to Jonathan Callen <en.ABCD@gmail.com> for this patch.
svn path=/main/trunk/; revision=14174
|
|
|
|
| |
svn path=/main/trunk/; revision=14097
|
|
|
|
|
|
| |
since shlex.split() doesn't behave well with unicode strings.
svn path=/main/trunk/; revision=13939
|
|
|
|
|
|
| |
Thanks to Alec Warner <antarus@g.o>.
svn path=/main/trunk/; revision=12049
|
|
|
|
|
|
|
|
| |
the current location with anything from PORTDIR_OVERLAY. Assume that an
overlay will contain at least a "repo_name" file while a master repo (portdir)
will contain at least a "profiles.desc" file.
svn path=/main/trunk/; revision=11855
|
|
|
|
|
|
| |
a potentially ambiguous ValueError.
svn path=/main/trunk/; revision=11853
|
|
|
|
|
|
| |
makes a little more sense thatn checking for package.mask.
svn path=/main/trunk/; revision=11852
|
|
|
|
|
|
|
|
| |
that was reported by grobian.
* Define __all__.
svn path=/main/trunk/; revision=11407
|
|
|
|
| |
svn path=/main/trunk/; revision=11330
|
|
|
|
|
|
|
| |
metadata.xml (in addition to use.local.desc). Thanks to Doug Goldstein
<cardoe@g.o> for this patch.
svn path=/main/trunk/; revision=11126
|
|
|
|
| |
svn path=/main/trunk/; revision=11018
|
|
|
|
|
|
| |
http://archives.gentoo.org/gentoo-portage-dev/msg_b7080f212c3eb09c943a1ce5a7356f01.xml)
svn path=/main/trunk/; revision=10325
|
|
|
|
| |
svn path=/main/trunk/; revision=9377
|
|
|
|
|
|
|
|
|
|
| |
paths that are consistent wrt eachother regardless of any path
irregularities that can be induced by symlinks. Consistency is achieved
by regenerating one of the paths to ensure that both paths have the exact
same mapping between inodes and paths. This consistency ensures that the
path manipulations used to calculate "repolevel" will work as intended.
svn path=/main/trunk/; revision=9365
|
|
|
|
| |
svn path=/main/trunk/; revision=9328
|
|
|
|
| |
svn path=/main/trunk/; revision=9226
|
|
svn path=/main/trunk/; revision=9221
|