Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pikaur -Sla fails with pacman: invalid option #777

Closed
br-olf opened this issue Mar 18, 2024 · 1 comment
Closed

pikaur -Sla fails with pacman: invalid option #777

br-olf opened this issue Mar 18, 2024 · 1 comment

Comments

@br-olf
Copy link

br-olf commented Mar 18, 2024

pikaur -Vq
Pikaur v1.18.4
Pacman v6.1.0 - libalpm v14.0.0 - pyalpm v0.10.6
Description:

I wanted to build a package search script for AUR similar to the command mentioned in the arch wiki.
see https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Browsing_packages

I don't want to use -Ss because its very slow and unnecessary in my case but -Sl does not list any AUR packages. So I looked up the help for -S and tried -Sla and got an error from pacman. I think listing all packages should include the AUR packages when using pikaur and I also think -Sla should be a possibility in pikaur.

Attached log:
 % pikaur -Sla
pacman: invalid option -- 'a'
% pikaur -Sla --verbose --pikaur-debug

:: debug: main_1000: Setting stdout to utf-8...
:: debug: main_1000: already set - nothing to do
:: debug: main_1000: Setting stderr to utf-8...
:: debug: main_1000: already set - nothing to do
:: debug: main_1000: Pikaur operation not found for args: ['/usr/bin/pikaur', '-Sla', '--verbose', '--pikaur-debug']
:: debug: main_1000: PikaurArgs(positional=[], sync=True, query=None, database=None, files=None, remove=None, deptest=None, upgrade=None, version=None, pkgbuild=None, getpkgbuild=None, groups=None, downloadonly=None, quiet=False, search=None, help=None, verbose=True, debug=None, noconfirm=None, needed=False, list=True, aur=True, keepbuild=False, keepbuilddeps=False, repo=None, noedit=False, edit=None, rebuild=None, skip_failed_build=False, dynamic_users=False, hide_build_log=None, skip_aur_pull=None, namesonly=False, nodiff=False, ignore_outofdate=False, print_commands=True, pikaur_debug=True, print_args_and_exit=None, refresh=0, clean=0, sysupgrade=0, info=0, nodeps=0, devel=0, ignore=[], ignoregroup=None, overwrite=None, assume_installed=None, color=None, dbpath=None, root=None, arch=None, cachedir=None, config=None, gpgdir=None, hookdir=None, logfile=None, print_format=None, home_dir=None, xdg_cache_home=None, xdg_config_home=None, xdg_data_home=None, preserve_env='PKGDEST,VISUAL,EDITOR,http_proxy,https_proxy,ftp_proxy,HTTP_PROXY,HTTPS_PROXY,FTP_PROXY,ALL_PROXY', mflags=None, makepkg_config=None, makepkg_path=None, pikaur_config=None, build_gpgdir='', privilege_escalation_target='pikaur', aur_clone_concurrency=None, user_id=0, unknown_args=[], raw=['-Sla', '--verbose', '--pikaur-debug'])
=> pacman -Sla --verbose
pacman: invalid option -- 'a'
:: debug: main_1000: Restoring stdout...
:: debug: main_1000: nothing to do
:: debug: main_1000: Restoring stderr...
:: debug: main_1000: nothing to do
@br-olf
Copy link
Author

br-olf commented Mar 18, 2024

My current fix is to use curl -s "https://aur.archlinux.org/packages.gz" | gunzip instead but I still think pikaur should cache this file locally.

Anyways, thanks for the great tool :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants