Skip to content

Better batch package handling - #3

Open
Vikyek wants to merge 5 commits into
davvrakoski:mainfrom
Vikyek:main
Open

Better batch package handling#3
Vikyek wants to merge 5 commits into
davvrakoski:mainfrom
Vikyek:main

Conversation

@Vikyek

@Vikyek Vikyek commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Now instead of stopping the installation process and doing a single scan and asking for confirmation for every installed package it does all scans and asks for batched confirmation. Then proceeds with uninterrupted installation process.

Vikyek added 5 commits May 24, 2026 10:28
Resolve issues with pre-execution shell-hook wrapper by migrating the
triggering mechanism to a native ALPM hook and integrating a local
verification database to cache scanned package data.

- Add support for native PreTransaction pacman hook to scan only chosen packages
- Remove legacy shell-wrapper injection to avoid unselected/search downloads
- Implement JSON database caching using cJSON to track name, source, key and sha256
- Add PGP key verification to bypass hashing for signed packages
- Enable direct TTY prompting inside piping contexts
- Clean up old shell config configurations automatically
Add support for traversing the process tree (via /proc) to locate the active
working directories of paru/yay wrapper processes.

- Retrieve parent process IDs (PPID) recursively up to 5 levels
- Verify directories containing PKGBUILDs using /proc/<PID>/cwd
- Avoid redownloading or cloning package repositories from AUR when the local sources are already present
- Scan the PKGBUILD in-place without disk duplication
Prevent pkgscan from attempting to clone and scan packages that reside
in official repositories, which results in empty repository warning/failure and
blocking prompts inside the non-interactive pacman hook.

- Check the package source returned by pacman query
- Skip scanning of any package that is not from the AUR
- Output a skip notification instead of triggering git clone
Synchronize documentation and Makefile target with recent ALPM hook and package database architecture changes.

- Document native ALPM pacman hook enable/disable/status flags
- Add CLI flag reference table for database caching, logging, and proc search options
- Update features list to reflect in-place process tree search and official repository skipping
- Adjust Makefile uninstall prompt to instruct running ALPM hook disable
@Vikyek

Vikyek commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

It also remembers our trust status for all packages and skips scanning in the future to optimize the process.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant