8000 `pikaur -Scc`: clean-up directories set in `SRCDEST` and `BUILDDIR` variables · Issue #763 · actionless/pikaur · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pikaur -Scc: clean-up directories set in SRCDEST and BUILDDIR variables #763

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

Open
morganmay opened this issue Oct 19, 2023 · 1 comment
Open

Comments

@morganmay
Copy link
pikaur -Vq
Pikaur v1.18.3
Pacman v6.0.2 - libalpm v13.0.2 - pyalpm v0.10.6
Description:

Expected behavior:
Setting SRCDEST and BUILDDIR variables in /etc/makepkg.conf overrides the default source and build directories; pikaur -Scc cleans the source and build directories.

Actual behavior:
pikaur -Scc cleans the default source and build directories, but ignores the directories set in the SRCDEST and BUILDDIR variables. (This bug probably would also affect PKGDEST as well, but that was unset in this case.)

Steps to reproduce:

  1. Set SRCDEST and BUILDDIR variables in /etc/makepkg.conf (in this case, to /opt/sources and /opt/makepkg).
  2. Build and install packages with pikaur; files are left in the directories set in SRCDEST and BUILDDIR.
  3. Run pikaur -Scc and answer "y" to the relevant prompts.
  4. Contents of the directories set in SRCDEST and BUILDDIR are untouched when they should be deleted.
Attached log:
:: 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 found for args ['/usr/bin/pikaur', '-Scc', '--verbose', '--pikaur-debug']: cli_clean_packages_cache
=> sudo --preserve-env=EDITOR -- /usr/bin/pikaur -Scc --verbose --pikaur-debug --pikaur-config=/home/user/.config/pikaur.conf --user-id=1000 --home-dir=/home/user --xdg-cache-home=/home/user/.cache --xdg-config-home=/home/user/.config --xdg-data-home=/home/user/.local/share
:: debug: main_0: Setting stdout to utf-8...
:: debug: main_0: already set - nothing to do
:: debug: main_0: Setting stderr to utf-8...
:: debug: main_0: already set - nothing to do
:: debug: main_0: Pikaur operation found for args ['/usr/bin/pikaur', '-Scc', '--verbose', '--pikaur-debug', '--pikaur-config=/home/user/.config/pikaur.conf', '--user-id=1000', '--home-dir=/home/user', '--xdg-cache-home=/home/user/.cache', '--xdg-config-home=/home/user/.config', '--xdg-data-home=/home/user/.local/share']: cli_clean_packages_cache
=> pacman --sync --verbose --clean --clean
:: Do you want to remove ALL files from cache? [y/N] :: Do you want to remove unused repositories? [Y/n] :: debug: main_0: Restoring stdout...
:: debug: main_0: nothing to do
:: debug: main_0: Restoring stderr...
:: debug: main_0: nothing to do
:: debug: main_1000: Restoring stdout...
:: debug: main_1000: nothing to do
:: debug: main_1000: Restoring stderr...
:: debug: main_1000: nothing to do
@actionless
Copy link
Owner

it's not meant to handle those, only https://github.com/actionless/pikaur#file-locations

feel free to add a new --key for cleaning those dirs as well

@actionless actionless changed the title pikaur -Scc ignores directories set in SRCDEST and BUILDDIR variables pikaur -Scc: clean-up directories set in SRCDEST and BUILDDIR variables Oct 24, 2023
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
0