| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
| |
Signed-off-by: Koichi Murase <myoga.murase@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/436
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
| |
This handles spaces and such much much better
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
According "SPECIFIC FILE DESCRIPTIONS" in `man portage`, it is valid to
have a parent path like `:path/to/profile` where the repo identifier is
missing. This refers to a path in the current repo.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Closes: https://github.com/pkgcore/pkgcore/pull/435
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
This change broke ConfiguredTree, since it was implementing the ABC
function through the `__getattr__` magic. While good intentions, reality
hit us.
Reverts: cc6a8d054363561890bb0552f1439a8ace92b367
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
| |
Signed-off-by: Brian Harring <ferringb@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/433
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This avoids black releasing a new version and all of our
tests failure due to the formatter changing.
The downside here is we probably want a notification that
black can be upgraded.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
| |
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Closes: https://github.com/pkgcore/pkgcore/pull/434
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
| |
Current locations are all wrong, so update them to the correct location.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This broken whenever the repo went to pyproject.toml .
On the one hand, I like enumerating what devs have to
invoke locally rather than relying on GH.
On the other hand, clearly no one is using this.
This fixes it for current usage. If it's to continue,
then GH and tox envlist's should be fused.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/430
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
`git log -p --author=mgorny` should there be questions;
EAPI8 implementation in parallel to supportive work for downstream pkgcore
users.
Worst case, consider this me attempting to throw a sense of responsibility
thus further contributions onto him.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Same as the commit to pkgcheck, history obscures it- including
VCS history not allowing author vs committer prior to git (cvs->svn->bzr->git),
but Marien Zwart (marienz) wrote most of the initial tests and surrounding
CLI UI code (which eventually moved to snakeoil).
While pkgcore 'started' as a fork of portage, I've left out
the portage authors since my past copyright analysis for the GPL-2 -> BSD-2 change
didn't flag anything from them. I explicitly wrote all subsystems
from scratch, even if I had shims to test against portage as I was
building anew. While some subsystems/code are shared between portage/pkgcore-
the cache subsystem for example, or fetch (iirc)- all of that came from pkgcore
thus copyright's on this side.
As per norms, the authors is limited to folks who made significant
impact- either core origination or straight up LOC, and with an
eye on if it still lives in the codebase (including if syntactic
changes have obscured that work).
I've left out the following folks who were authors/maintainers from
the 'before time'; they're left out due to how long it's been and
scale of contributions in parallel to my rough understanding of what has
been rewritten (new works) or just plain dropped.
* Charlie Shepherd; VCS obscures a fair amount, but binpkg + formatting work,
and general "fix what brian broke".
* Jason Stubbs; maintainer + resolver work, critical/contributor to architectural
design discussions in moving away from the mistakes of portage.
* Markus Ullman. Worked on internals and devex- hard to state exactly
how much he commited, but my recollection is he was a core maintainer.
Apologies for anyone I overlooked or left out- it's accident
+ >15y timespan. Human memory has it's limits and the primary intention
here is to give credit, but more importantly to track copyright ownership
should this project every need to undergo another licensing change.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
|
|
|
| |
Same as the commits in other pkgcore repos- this is to
allow one to peer back through history to see why the !@*#
something dumb was done back in the good ole days, and understand
the implications of changing it.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
|
| |
Based on work at commit 33f03d9ae71df55082e5b196e1db24c642e19db9 by
Tim Harder <radhermit>.
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This moves the burden of derivatives having to ensure they return
immutables, instead this is handled by the internals of prototype.tree
since it already partially was.
This change basically makes it easier to write generators for
cat/pkg/ver listing.
For existing implementations returning immutable objects this has
no impact; `t=(1,2);assert t is tuple(t)` for example, and the
same holds for frozenset.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
|
| |
This was always an abstract class, just typing/ABC didn't
exist when it was written. Leverage modern protections.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The implementation wasn't properly aliasing _get_* to
the underlying raw_repo, and it should've been filtering
packages and versions according to the filter. This adds that.
This isn't a huge issue, but it breaks API guarantees
for code tring to efficienctly access this sort of info
for a repository stack.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
|
| |
In this case, it's not needed beyond being explicit- the
GetAttrProxy redirects _get_categories and such to .raw_repo.
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Suppressing $HOME is necessary for hygenic tests; to avoid
anything in the dev's environment becoming relied upon for
the test passing.
A slightly more salient point for me; every `git commit` test
was asking for my gpg unlock for git commits; obviously annoying,
also obviously unhygenic (I could have modified default git commit
template for example).
Signed-off-by: Brian Harring <ferringb@gmail.com>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
| |
Signed-off-by: Sam James <sam@gentoo.org>
Closes: https://github.com/pkgcore/pkgcore/pull/427
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
Better matches the order defined in skel.ebuild
A prerequisite for https://github.com/pkgcore/pkgcheck/pull/645
Signed-off-by: Anthony Ryan <anthonyryan1@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/425
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
If the child repository defines no license groups, the previous code would
exit out before it integrated the parents license groups.
This fixes that, and adds tests for it.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/424
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug #421 captures this; pkgcore was allowing version components
as the package name if it was suffixed by a revision; the fix
for that incorrectly limited a package name that has a trailing
revision, but *no version syntax* in the name.
This commit just refactors the revision check to also force a check
for a leading version if revision-like is found.
Resolves: https://github.com/pkgcore/pkgcore/issues/421
Signed-off-by: Brian Harring <ferringb@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/422
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
CPV parsing was fixed (and test asserted) for this,
but atom parsing should also have a test to ensure
CPV changes don't let this slip through.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/420
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
It's a minor redundant protection + optimization, but
it's worth ensuring the only spot considered for a slot prefix
is left of any use restrictions.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
The previous logic was just checking for a trailing version component;
it wasn't checking for a trailing revision.
Relates to issue: #419
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
| |
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The support for multiple levels of categories never was
used, thus it's time to remove it since it also simplifies
things.
Doing this means the original dict functionality of
repo.categories should be replaced w/ a sequence which
this also does.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/417
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
| |
Additionally rename "test_no_description" to "test_missing_data"
since that's what it does.
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This has been broken for a long while, thus I'm renaming
it to `--environment-re` (from `--environment`) in the
process.
Tests will follow in a later PR (pquery test infra needs some
work).
Signed-off-by: Brian Harring <ferringb@gmail.com>
Closes: https://github.com/pkgcore/pkgcore/pull/415
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|
|
|
|
|
| |
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
|