summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 22:09:08 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 22:09:08 -0400
commitb261c8585cf6aa9e7bf5b960b2a0a047d769dbae (patch)
tree06cf8333fb9aa1e00442ef37b3e422129442ce9a
parentec0c6ec25ad2293e567b4935d77366341d7cb2d1 (diff)
update makechrootpkg.sh.patchtesting-20130514
-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 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