diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-14 22:09:08 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-14 22:09:08 -0400 |
commit | b261c8585cf6aa9e7bf5b960b2a0a047d769dbae (patch) | |
tree | 06cf8333fb9aa1e00442ef37b3e422129442ce9a /src/devtools | |
parent | ec0c6ec25ad2293e567b4935d77366341d7cb2d1 (diff) |
update makechrootpkg.sh.patchtesting-20130514
Diffstat (limited to 'src/devtools')
-rw-r--r-- | src/devtools/lib/makechrootpkg.sh.patch | 8 |
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 |