mirror of
https://github.com/luzifer-docker/arch-repo-builder.git
synced 2024-12-20 17:41:19 +00:00
Add support for multi-package builds
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a81f53faf0
commit
f338f32737
1 changed files with 6 additions and 4 deletions
10
run.sh
10
run.sh
|
@ -36,7 +36,7 @@ gosu builder getkeys.sh
|
|||
# Execute the build itself
|
||||
gosu builder makepkg ${MAKEPKG_OPTS[@]}
|
||||
|
||||
PACKAGE=$(ls *.pkg.tar.xz) # This should be only one file
|
||||
PACKAGE=($(ls *.pkg.tar.xz))
|
||||
|
||||
REPODB=$(find /repo -name '*.db.tar.xz')
|
||||
if [ -z "${REPODB}" ]; then
|
||||
|
@ -45,7 +45,9 @@ if [ -z "${REPODB}" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
gosu builder mv ${PACKAGE}* /repo
|
||||
for pkg_file in "${PACKAGE[@]}"; do
|
||||
gosu builder mv ${pkg_file}* /repo
|
||||
|
||||
cd /repo
|
||||
gosu builder repo-add ${REPOADD_OPTS[@]} ${REPODB} "${PACKAGE}"
|
||||
cd /repo
|
||||
gosu builder repo-add ${REPOADD_OPTS[@]} ${REPODB} "${pkg_file}"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue