Summary: | sys-apps/portage: make emerge insensitive to relative order of optional and positional arguments | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Zac Medico <zmedico> |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | gentoo, sam |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=673400 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 785484 |
Description
Zac Medico
![]() <[Arfrever]> zmedico: I noticed that 'emerge ${package1} ${option} ${package2}' triggers error. Maybe we can use parse_intermixed_args for python3.7 and later: https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.parse_intermixed_args Also: [Tue 10:41 pm]<[Arfrever]> kveremitz: As long as you use all atoms at the beginning and all options at the end, it works :) . [Tue 10:42 pm]<zmedico> we've gotta fix that [Tue 10:42 pm]<kveremitz> ^ [Tue 10:42 pm]<kveremitz> its backwards! Patch posted for review: https://archives.gentoo.org/gentoo-portage-dev/message/4e045f578a63aed09de36b5cfdfbb2ae https://github.com/gentoo/portage/pull/698 The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=971546efe69394743584107c0657b62fb65ee163 commit 971546efe69394743584107c0657b62fb65ee163 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2021-04-21 04:28:12 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2021-04-21 04:29:21 +0000 emerge: use parse_intermixed_args when available (bug 784566) The included unit test case previously failed with this error: emerge: error: unrecognized arguments: dev-libs/A Bug: https://bugs.gentoo.org/784566 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/_emerge/main.py | 2 +- lib/portage/tests/emerge/test_simple.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cba21902d9a8d1ac07d2ff5b0d932e71fc1fac67 commit cba21902d9a8d1ac07d2ff5b0d932e71fc1fac67 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2021-05-24 07:47:11 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2021-05-24 09:05:08 +0000 sys-apps/portage: Bump to version 3.0.19 #520378: allow emerge --fetchonly to log to emerge-fetch.log #698244: portage(5) document user patch / eapply_user #781854: Suggest PORTAGE_LOG_FILTER_FILE_CMD cat fallback #782724: sort emerge --unmerge order for determinism #783957: lazily evaluate cnf_* variables in tests #784566: make emerge insensitive to relative order of optional and positional arguments #787545: emerge CTRL C may be ignored when running pkg_pretend #787563: ebuild-ipc could handle KeyboardInterrupt #788967: emerge --jobs= triggers TypeError Bug: https://bugs.gentoo.org/785484 Bug: https://bugs.gentoo.org/788967 Bug: https://bugs.gentoo.org/787563 Bug: https://bugs.gentoo.org/787545 Bug: https://bugs.gentoo.org/784566 Bug: https://bugs.gentoo.org/783957 Bug: https://bugs.gentoo.org/782724 Bug: https://bugs.gentoo.org/781854 Bug: https://bugs.gentoo.org/698244 Bug: https://bugs.gentoo.org/520378 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.19.ebuild | 266 +++++++++++++++++++++++++++++++++ 2 files changed, 267 insertions(+) |