From b261c8585cf6aa9e7bf5b960b2a0a047d769dbae Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 14 May 2013 22:09:08 -0400 Subject: update makechrootpkg.sh.patch --- src/devtools/lib/makechrootpkg.sh.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/devtools') diff --git a/src/devtools/lib/makechrootpkg.sh.patch b/src/devtools/lib/makechrootpkg.sh.patch index d20b88c..e1921d7 100644 --- a/src/devtools/lib/makechrootpkg.sh.patch +++ b/src/devtools/lib/makechrootpkg.sh.patch @@ -162,15 +162,15 @@ +} -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 $pkgfiles... +chroot_add_to_local_repo() { + local copydir=$1; shift + mkdir -p "$copydir/repo" +- for pkgfile in "$copydir"/pkgdest/*.pkg.tar.?z; do +- if $add_to_db; then + for pkgfile in "$@"; do - mkdir -p "$copydir/repo" + cp "$pkgfile" "$copydir/repo" pushd "$copydir/repo" >/dev/null - cp "$pkgfile" . repo-add repo.db.tar.gz "${pkgfile##*/}" popd >/dev/null - fi -- cgit v1.2.3-54-g00ecf