Skip to content

set PACKAGE_FILES environment variable for postbuild commands #222

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

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

jaxvanyang
Copy link
Contributor

I'm trying to use repo-add to update my repo db after build, so I want to know file names of the new built package files. Writing a script to find them is a little diffcult, but lilac has a simple API to do it! So I made this change, PACKAGE_FILES are space-seperated file names and their parent paths are stripped because the final file path may be destdir or staging dir.

I think this is a good adition to post scripts, for example, I can now use a simple script below to add new packages:

for i in $PACKAGE_FILES; do
  repo-add /path/to/repo.db "$destdir/$i"
done

@lilydjwg lilydjwg merged commit 66de327 into archlinuxcn:master Jul 11, 2025
1 check passed
@lilydjwg
Copy link
Member

Thanks!

@jaxvanyang jaxvanyang deleted the jax/package_files branch July 11, 2025 11:28
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.

2 participants