You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run the pikaur with partially given name causes its crash:
$ pikaur -Qsq -- '-git'
Traceback (most recent call last):
File "/bin/pikaur", line 41, in <module>
main()
File "/usr/lib/python3.12/site-packages/pikaur/main.py", line 494, in main
with wrapper():
^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/main.py", line 107, in __enter__
logger.debug(
File "/usr/lib/python3.12/site-packages/pikaur/logging_extras.py", line 81, in debug
msg = f"{color_line(self.module_name, self.color)}: {' ' * indent}{str_message}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/pikaprint.py", line 189, in color_line
if not color_enabled() and not force:
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/pikaprint.py", line 91, in color_enabled
args = parse_args()
^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/args.py", line 819, in parse_args
parsed_args, _help = _parse_args(args=args)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/args.py", line 778, in _parse_args
parser, help_msgs = get_parser_for_action(app=app_name, args=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/args.py", line 737, in get_parser_for_action
parsed_action = parser.parse_pikaur_args(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/args.py", line 623, in parse_pikaur_args
parsed_args, unknown_args = self.parse_known_args(raw_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/argparse.py", line 1932, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/argparse_extras.py", line 293, in _parse_known_args
stop_index = consume_positionals(start_index)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/pikaur/argparse_extras.py", line 249, in consume_positionals
args.remove(LONG_ARG_PREFIX)
ValueError: list.remove(x): x not in list
While the pacman gives the packages list with '-git' at the end of the name.
The text was updated successfully, but these errors were encountered:
Description:
Trying to run the
pikaur
with partially given name causes its crash:While the
pacman
gives the packages list with '-git' at the end of the name.The text was updated successfully, but these errors were encountered: