summaryrefslogtreecommitdiff
path: root/src/devtools/lib
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-07 11:00:02 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-07 11:00:02 -0400
commit63f8d6fd765b80abca682dfd6b3b80050bf76b3e (patch)
treece42546221d0f086b38bcadf781409d3cfcc40eb /src/devtools/lib
parentb1a47e5ca3587b40b1e417cc568475e09aa3bbc1 (diff)
have `librechroot install-file` add the packages to the local repo.
Diffstat (limited to 'src/devtools/lib')
-rw-r--r--src/devtools/lib/makechrootpkg.sh.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devtools/lib/makechrootpkg.sh.patch b/src/devtools/lib/makechrootpkg.sh.patch
index 6016ba4..13a9ff1 100644
--- a/src/devtools/lib/makechrootpkg.sh.patch
+++ b/src/devtools/lib/makechrootpkg.sh.patch
@@ -143,10 +143,10 @@
-if archroot -r "$copydir" "/chrootbuild"; then
- for pkgfile in "$copydir"/pkgdest/*.pkg.tar.?z; do
- if $add_to_db; then
-+# Usage: chroot_add_to_local_repo $copydir
++# Usage: chroot_add_to_local_repo $copydir $pkgfiles...
+chroot_add_to_local_repo() {
-+ local copydir=$1
-+ for pkgfile in "$copydir"/pkgdest/*.pkg.tar*; do
++ local copydir=$1; shift
++ for pkgfile in "$@"; do
mkdir -p "$copydir/repo"
pushd "$copydir/repo" >/dev/null
cp "$pkgfile" .
@@ -236,7 +236,7 @@
+ chroot_build "$copydir" "$makepkg_args" "$run_namcap"
+ func2
+ if chroot_build; then
-+ chroot_add_to_local_repo "$copydir"
++ chroot_add_to_local_repo "$copydir" "$copydir"/pkgdest/*.pkg.tar*
+ chroot_copy_out_pkgs "$copydir" "$src_owner"
+ chroot_copy_out_logs "$copydir" "$src_owner"
+ else